WordPress.org

Ready to get started?Download WordPress

Forums

Where is this extra /div coming from? (7 posts)

  1. powerkor
    Member
    Posted 5 years ago #

    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)

  2. iridiax
    Member
    Posted 5 years ago #

    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.

  3. powerkor
    Member
    Posted 5 years ago #

    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

  4. iridiax
    Member
    Posted 5 years ago #

    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.

  5. powerkor
    Member
    Posted 5 years ago #

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

  6. whooami
    Member
    Posted 5 years ago #

    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.

  7. iridiax
    Member
    Posted 5 years ago #

    This topic has another idea for finding odd added code:

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

Topic Closed

This topic has been closed to new replies.

About this Topic