• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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!

    Thread Starter mrtom100

    (@mrtom100)

    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..

    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

    Thread Starter mrtom100

    (@mrtom100)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Website – wordpress failing XHTML validating by 1 error help’ is closed to new replies.