Support » Plugins and Hacks » Disqus being correctly inserted into search pages, breaking the layout

  • Resolved Caleb Withers


    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 ( ), but on certain searches, a few elements have incorrect widths and an error message is produced ( ). 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!

  • The topic ‘Disqus being correctly inserted into search pages, breaking the layout’ is closed to new replies.