WordPress.org

Ready to get started?Download WordPress

Forums

Link Category titles (6 posts)

  1. kyte
    Member
    Posted 9 years ago #

    These now are taking on the same appearance in my blog, as the headlines for each post. However they are making the place look untidy, and the other titles in my sidebar are different... the way I want them.

    What's driving this? I can't see it in the css or sidebar.php, it looks to me like its being styled from elsewhere.

  2. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    http://wordpress.org/support/topic.php?id=21709

    Links categories are now getting wrapped in <h2> tags. Check out the HTML source your browser sees. You'll have to account for this in your CSS (you might want to put your other sidebar headings in <h2> tags as well to make it easier).

  3. unruly
    Member
    Posted 9 years ago #

    well, what if we don't _want_ h2 tags in our sidebar?

    This is extremely annoying, especially with no obvious way of disabling it.

  4. crank
    Member
    Posted 9 years ago #

    If I'm not mistaken ... to remove the harcoded H2's from the sidebar you just open up the sidebar.php file and edit them out in each instance.

    For example : line 42 of the default theme reads:
    <li><h2><?php _e('Archives'); ?></h2>

    so you'd just edit those out to read like:
    <li><?php _e('Archives'); ?>

    Do that in each instance and you'll get it the way you want it.

    Somebody correct me if I'm wrong please.

    crank!

  5. unruly
    Member
    Posted 9 years ago #

    The problem is, I'm not using the default theme. I'm upgrading my old theme to the new template system, and when using get_links_list(); it adds unneeded H2's to the output.

  6. unruly
    Member
    Posted 9 years ago #

    I managed to get around it by calling out each link category with wp_get_linksbyname('categoryname') and formatting the desired html around it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.