The MU forums have moved to

got some trouble with the "old" mu-admin bar (5 posts)

  1. Ovidiu
    Posted 13 years ago #

    using this plugin:

    I have got a problem with html validation. the validator complains about a </form> where there is no opening form :-(

    relevant sourcecode of the site:

    </div><div id="wp-admin-bar-right">
    <li><a href="">Random Blog</a></li>
    <li><a href="">Log out</a></li>

    and here is the sourcecode that generates that code:

    echo "\n\t
    <li><a>Random Blog</a></li>
    ";  /* uncomment if you are using dr mike's random blog plugin */
    		echo "\n\t
    <li>"; wp_loginout(); echo "</li>
    		echo "\n</div>";

    I am not sure where this </form> tag comes from.

  2. Ovidiu
    Posted 13 years ago #

    ok, I took out the `

  3. "; wp_loginout(); echo "
  4. as there already is a login/out form in the sidebar, thought this one in the admin bar might interfere with it... still no change, got that</form>` sitting there :-(

  • Ovidiu
    Posted 13 years ago #

    any hints on this please? nobody using that plugin?

  • dsader
    Posted 13 years ago #

    Validate the template first without any plugins/widgets. Add pieces one at a time to validate.

    There appear to be errors unrelated to the mu-admin bar.

    For example, using Mandigo theme, Admin bar shows fine, and page validates.

    To illustrate, a flaw in a template header.php ( a misplaced wp_head hook, for example) will show errors about every plugin using the hook. Only use wp_head within head and not in body
    <?php wp_head(); ?>
    <body><?php wp_head(); ?>
    I suspect your home template customizations have busted validation along the way, regardless of mu-admin bar or not.

  • Ovidiu
    Posted 13 years ago #

    thx a lot for the hints. I wasn't aware it validates for other blogs.

  • About this Topic