Viewing 7 replies - 1 through 7 (of 7 total)
  • oriecat

    (@oriecat)

    Did you manually add an <li>, if so remove it, because I believe the function automatically adds it in.

    For example, in the default theme, it says

    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>

    so it looks like you need the li on loginout, but now on register

    Thread Starter tjinh200

    (@tjinh200)

    oh … i’ll try …

    Lorelle

    (@lorelle)

    Well, it must be there, cuz it’s finding it. Ah, I know, if you have nested lists, the “secondary” list set must be in a UL.

    So if you have something like:

    <li><?php wp_list_pages() ?></li>

    You will get the error because it needs to be:

    <li>
    <ul><?php wp_list_pages() ?>
    </ul>
    </li>

    Get it?

    The opening and closing elements of the list are missing and therefore you are getting two LI next to each other.

    Thread Starter tjinh200

    (@tjinh200)

    taking the <il> out still won’t allow it to validate for some reason …

    adding the <ul> works but adds a few spaces before the actual text, how can i remove those extra spaces? …

    Thread Starter tjinh200

    (@tjinh200)

    correction above …

    Thread Starter tjinh200

    (@tjinh200)

    very odd, it’s returning two “li” tags … but in my index.php it shows only:

    shown in my index.php: <li> <ul><?php wp_register(); ?></ul> </li>

    shown in view source and validation page:
    <li>
    <ul>
    <li><a href="https://tjinh200.com/tjinh200/wp-admin/">Site Admin</a></li>
    </ul>
    </li>

    Thread Starter tjinh200

    (@tjinh200)

    correction: not sure why, but tried just taking out the “il” tags again, and it validated, thank you ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘XHTML validation problem’ is closed to new replies.