Hi
It seems when I build sites in enfold I can’t get yoast or any plugin to generate a sitemap. When I go to http://www.dkbglasgow.com/sitemap_index.xml
I get the error. And reading this discussion someone said it was the theme
https://wordpress.org/support/topic/error-on-line-2-at-column-6-xml-declaration-allowed-only-at-the-start-of-the-do
Could enfold be causing this issue?
Hey codecreative!
Thank you for using Enfold.
I tested this on my installation and the sitemap works fine. Please try to deactivate all plugins except for Yoast then test it again.
Cheers!
Ismael
Hi Ismael
I fixed it. It was indeed blank lines at the end of the themes functions file I deleted them and all is fine