• Resolved atcrips

    (@atcrips)


    Hello,

    I am a fan of this light weight plugin, I have personalised it a bit and started using it on my website.

    Unfortunately, I have encountered a huge problem.
    The required HTML, CSS and JavaScript code is included in the head of every page and I would like to exclude some pages. For example the contact page, if the user lands on the contact page there is no reason to have this popup.
    Besides the lack of such a feature, the real problem is that the popup code is included on every page, including robots.txt and sitemap.xml.
    As a result my sitemap.xml file is broken and Search Console refuses to crawl it.

    I will be thinking of a way to exclude the plugin code on some pages, but until I find a solution I was hoping maybe you could help solve this problem.

    Thank you for developing this plugin,
    Antonio

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author SiD

    (@siddhu09rocks)

    Hi @atcrips

    Sorry for delay.

    I had to keep plugin light weight. So there is no such feature at the moment which can exclude popup on some pages.

    But I will definitely try and fix issues regarding sitemap.xml

    Any plugin you are using for sitemap.xml ?

    • This reply was modified 4 years, 10 months ago by SiD.
    Thread Starter atcrips

    (@atcrips)

    I am using a plugin called Google XML Sitemaps by Arne Brachhold. The plugin creates both XML and HTML sitemap, and both are affected.

    Thread Starter atcrips

    (@atcrips)

    Also, please don’t forget about the robots.txt file, it is also affected.

    Plugin Author SiD

    (@siddhu09rocks)

    Hi @atcrips

    Thanks for your patience. I have fixed the issue please update the plugin.

    Let me know if anything.

    Thread Starter atcrips

    (@atcrips)

    Thank you for the update but I am affraid it still affects the file robots.txt

    I saw that you modified the first parameter of add_action from ‘wp’ to ‘template_redirect’ so I went searching for other parameters and I found ‘wp_head’.

    I just tested with wp_head and it seems to inject the AGL code only on pages where the <head> tag is present, which is perfect.

    Do you think using wp_head would cause any problems?

    • This reply was modified 4 years, 10 months ago by atcrips.
    Plugin Author SiD

    (@siddhu09rocks)

    Hi @atcrips

    wp_head should not cause any problems.

    But to keep the AMP support I have to call it earlier with template_redirect action.

    Please update the plugin. I have fixed main title related bug.

    SiD

    Plugin Author SiD

    (@siddhu09rocks)

    Sorry @atcrips

    I overlooked your comment about robots.txt

    Let me come up with solution for that.

    Plugin Author SiD

    (@siddhu09rocks)

    Hi @atcrips

    I tested this on my local environment.

    Robots.txt is loading just fine without any issues.

    Can you test again? or drop URL so that I can debug further?

    Thanks,
    SiD

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Broken XML Sitemap’ is closed to new replies.