WordPress.org

Ready to get started?Download WordPress

Forums

1.5, Link cats and the h2 tag (9 posts)

  1. Mark (podz)
    Support Maven
    Posted 9 years ago #

    wp-includes/links.php

    1.2.2
    Line 562
    // Display the category name
    echo " <li id="".sanitize_title($cat["cat_name"])."">" . stripslashes($cat["cat_name"]) . "nt<ul>n";

    1.5
    Line 503
    // Display the category name
    echo " <li id="linkcat-" . $cat["link_category"] . ""><h2>" . $cat["cat_name"] . "</h2>nt<ul>n";

    Remove the <h2> and </h2> tags to revert back if you have upgraded and this is causing problems ?

    **Untested - keep a backup.

  2. Phoat
    Member
    Posted 9 years ago #

    why is the li and h2 tags doing there in the first place? Should that be up to the user to decide if he wants to use h2 and li for the links?

  3. desk003
    Member
    Posted 9 years ago #

    Thanks for pointing it out Podz

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It is now line 551 in 1.5.1

  5. Matt Mullenweg
    Troublemaker
    Posted 9 years ago #

    Instead of editing the file, you can use CSS to make the <h2>s appear just like they did before.

  6. Mark (podz)
    Support Maven
    Posted 9 years ago #

    True ! :)

  7. moshu
    Member
    Posted 9 years ago #

    Wouldn't be easier NOT to have this h2 in the code since nobody really wants it???

  8. Chuckie
    Member
    Posted 8 years ago #

    >Wouldn't be easier NOT to have this h2 in the code since >nobody really wants it???

    I agree, why is the h2 tag only in the Links section? Are links more important than Categories, and Archives? It's annoying to hunt down and rip out the h2 code every time I upgrade.

    If the h2 tag is going to be in the link header then use it with the other headers (Categories, and Archives). Have a litte consistency.

  9. nocturnmidnight
    Member
    Posted 7 years ago #

    I know it's been a long time but. Thank You!!!!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.