WordPress.org

Ready to get started?Download WordPress

Forums

Website - wordpress failing XHTML validating by 1 error help (5 posts)

  1. mrtom100
    Member
    Posted 5 years ago #

    Hello i am trying to validate my website that is powered by WordPress and there is one error through out the site. The error is the <p> part of this code as it becomes before a <div> which according to the validator is not allowed. This is the code that is produced by WordPress or a plug in i use. The bold area is the problem, trouble being i can not locate where or what is producing this tag. The only plug in that i use is WP Shopping Cart and cforms.

    <div class="post" id="post-3">
    <h2>Products Page</h2>
    <div class="entry">
    <p><div id='products_page_container' class="wrap wpsc_container">

    any help will be great this is the link to the site i am working on at the moment, it affects all pages apart from the home page, contact us, about us... I am thinking it is something to do with the shopping cart software plug in but it doesn't effect the home page. HELP

  2. Ignacio
    Member
    Posted 5 years ago #

    i would recommend opening WP Shopping cart files and doing a search for products_page_container since it looks like this id is generated by that plugin.

    it might also be an error in page.php or single.php of your template. i would start by doing the id search. there are great apps that can open all files you want and perform the search on all of them, so you don´t have to go 1 by 1 (i do that on dreamweaver for example).

    hope that helps, but i know it´s not much...
    good luck!

  3. mrtom100
    Member
    Posted 5 years ago #

    thank you i will try do that again as i think i have once and i have had no joy. The way that the pages are made up of a mix of html, php and database makes it hard to locate files that i need as i don't know which files are called from where lol....

    Thank you for the advise i will give it another go..

  4. Marcel Brinkkemper
    Member
    Posted 5 years ago #

    WordPress insert the paragraphs <p></p> with the function wpautop().
    The shopping cart plugin should have taken care of disabling wpautop.
    You could conact the plugin builder

  5. mrtom100
    Member
    Posted 5 years ago #

    Thank you i have installed WP Unformatted and that sorted the default wordpress function wpautop(). thank you for all you help people....

Topic Closed

This topic has been closed to new replies.

About this Topic