• Resolved trinidadcitra

    (@trinidadcitra)


    Hi there,

    I am new to WP and, I see this question has been asked before, but I don’t know how to get to the place to solve it.

    I have just set my sitemap in Google Search Console and when I go to see it, it gives me: “error on line 2 at column 6: XML declaration allowed only at the start of the document”

    But I don’t know where to delete those lines.

    Many thanks,

    Trinidad

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jeroen Rotty

    (@jeroenrotty)

    Hi @trinidadcitra,

    Thank you for reaching out.

    In most cases when this happens, it’s due to a blank space in specific theme files. We have some documentation about this very topic here: https://yoast.com/help/xml-sitemap-error/. In there, we recommend doing a conflict check to find the cause

    Jerlyn

    (@jerparx)

    Hi @trinidadcitra ,

    We’re now tagging this thread as resolved as it seems there are no further concerns from you. Should you have further questions, please open a new thread.

    Thread Starter trinidadcitra

    (@trinidadcitra)

    Hi there,

    I read the posts on the link you recommend before writing here, but I still don’t know how to access code to delete them manually.

    thanks,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error when setting sitemap’ is closed to new replies.