Tagged: enfold
-
AuthorPosts
-
February 6, 2024 at 12:00 pm #1433250
I am trying to use RSS with mailchimp. I tested my feed url on Feed Validator, and it says that here is a blank line a the beginning of my html pages.
I actually didn’t modify in my custom theme the header.php file. I only added a couple of page template to be used on two specific pages in my website. Plus I added some code snippets i my functions.php to customize the website. Have you any idea what I should check to fix the error?Thanks
- This topic was modified 9 months, 2 weeks ago by elenapoliti.
February 7, 2024 at 7:29 am #1433406Hey Elena,
Thank you for the inquiry.
We’re not really sure about the source of the blank line, but your RSS feeds should remain readable. You can verify this by testing the feed using the following link: (see private field)
Please keep in mind that the theme doesn’t generate or alter the RSS template.
Best regards,
IsmaelFebruary 7, 2024 at 11:52 am #1433453Thanks Ismael. I asked it because I need to use the feed for Mailchimp and was reading how to use it. I tried to add the url
https:///www.mysite.org/feed to Feed Validator and the response was that there was a problem with my feed that is unreadable, and was mentioning the first line. Anyway you rss.app gives a proper response, so it seems to work. ThanksMaybe I did something wrong. In case I have more problems I’ll contact you again
February 7, 2024 at 2:24 pm #1433474Hi Ismael it’s still me. I don’t understand one thing. I see that if I enter in the rss.app the url
https://www.mysite.org/feed it produces the feed with all my posts, but I need to use it with mailchimp, as from the explanation here below
https://mailchimp.com/help/share-your-blog-posts-with-mailchimp/?utm_source=mc-kb&utm_medium=kb-site&utm_campaign=eepurlHowever if enter https://www.mysite.org/feed in the rss feed url, it says that there’s something wrong.
I tried to enter the https://www.othersite.org/feed and Mailchimp can retrieve that, but not the one of this specific website
Thanks for help- This reply was modified 9 months, 2 weeks ago by elenapoliti.
February 9, 2024 at 7:26 am #1433762Hi,
Thank you for the update.
Do you encounter the same “Blank line before XML declaration” error when you use the validator? Please review your functions.php file and make sure that there are no blank lines before or after the tags. We haven’t encountered this issue previously, so it’s not clear how the blank lines are being added to the rss file.
Best regards,
IsmaelFebruary 9, 2024 at 9:11 am #1433774Thanks very much for the suggestions. I fixed the problem. It was a custom shortcode that was causing the issue (blank line after <?php tag. You can close the ticket
February 9, 2024 at 10:42 am #1433785 -
AuthorPosts
- The topic ‘Empty first line in my html page’ is closed to new replies.