WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Disqus being correctly inserted into search pages, breaking the layout (1 post)

  1. Caleb Withers
    Member
    Posted 3 years ago #

    Hi there,
    I've been having some issues with Disqus on my blog: my search page is malformed, and I've worked out that Disqus is causing it - or to be specific, Disqus code is being incorrectly added to the page, and the page is fine when the Disqus plugin is disabled. My search page usually works fine ( http://djsilkworm.com/?s=dubstep ), but on certain searches, a few elements have incorrect widths and an error message is produced ( http://djsilkworm.com/?s=poll+results ). If you look at the body class section of the bad code

    [Code moderated as per the Forum Rules. Please use the pastebin]

    you'll see that the disqus script is being inserted as the body class, which is messing with my css rules. Is there any way to stop this happening, or disable the plugin on my search page, or override this rule and give my body back its correct class?
    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic