• Resolved theros

    (@theros)


    Hi all!

    I’m working on this site here and I can’t figure out why WordPress is parsing the HTML in such a weird fashion. When you test it for validation you get misplaced <p> and <a> tags…

    How can I fix this?

    Thanks,
    Eric Huang

Viewing 4 replies - 1 through 4 (of 4 total)
  • Probably has to do with the code inside the index.php theme you are using in that site. And it seems that your “read on” links are causing part of the mess.
    Look in your wp-content/themes/”yourtheme”/index.php for:
    <?php the_content(__('(Read On)')); ?>
    And you can read more here:
    http://codex.wordpress.org/Customizing_the_Read_More

    Thread Starter theros

    (@theros)

    Okay, I looked through that page…I still can’t figure out what’s causing it. I’m not understanding what I need to change… When I change that line, it always gives me a PHP error.

    Basically your source code shows invalid nested tags:

    <p>
    <a href="http://according2us.com/eric/post-title-1/#more-13" class="more-link"></p>
    <p>Read On</a></p>

    and should be:

    <p><a href="">Read On</a></p>

    The problem is at your theme index.php, you got some extra <p> somewhere..

    Thread Starter theros

    (@theros)

    I resolved the problem. It’s because of the <brs> i was using.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Invalid HTML’ is closed to new replies.