Support » Themes and Templates » Link Category titles

  • 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.

Viewing 5 replies - 1 through 5 (of 5 total)

    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).

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

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

    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.


    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.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link Category titles’ is closed to new replies.