WordPress.org

Support

Support » How-To and Troubleshooting » Where is this extra /div coming from?

Where is this extra /div coming from?

  • Anyone have any idea how or why there is an extra /div (closing tag only) being added to the very end of my site (preventing it from validating w3c)

    It’s not really causing any other problems, but not sure how to track this down without disabling addons (which I really dont want to do)

Viewing 6 replies - 1 through 6 (of 6 total)
  • To find errors in your code, select the Show Source option in the validator and then click Revalidate. Now, clicking on the line numbers in the errors will take you to the corresponding line in your code. Look at what code surrounds the error to deduce which theme file or post may have the error.

    HMM… I know what line its on… Im saying WordPress is ADDING it to the end of the html… its not actually there in the code… so something is ADDING it, you know what I mean.

    Here, take a look: http://www.roguedeals.com/reviews

    WordPress does not do things like this. Check your theme’s index.php, footer.php, and functions.php. If it’s not hiding in the theme, it may be from a plugin. I have seen hacking insert code at odd spots, but I don’t see any nasty code in your footer.

    Guess Ill have to disable every plugin one at a time. Lame.

    whooami

    @whooami

    Member

    Guess Ill have to disable every plugin one at a time. Lame.

    I suggest learning to deal with the lameness you see — disabling plugins is a fairly standard troubleshooting process.

    This topic has another idea for finding odd added code:

    http://wordpress.org/support/topic/243346

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Where is this extra /div coming from?’ is closed to new replies.
Skip to toolbar