treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Wordpress Sidebar elements

  • I've always had trouble with this and finally need to figure it out.

    Wordpress has stuff in the sidebar like Blogroll, Categories, Pages and Archives usually out of the box.

    I'm working on a site that needs to change "Blogroll" to "Sites we follow". I also need "Archives" and "Categories" to have titles that are H3's.

    Unfortunately WP outputs these things all sort of different. at least to me heh. So I'm looking for the way to make them all similar


    <?php wp_list_categories('title_li=<h3>Categories</h3>'); ?>

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php wp_list_bookmarks(); ?>
    <?php } ?>

    <li><h3>Archives</h3>
    <ul class=\"last\">
    <?php wp_get_archives('type=monthly'); ?>
    </ul>


    thats the current code i have.

    what it outputs is this:
    http://digitalskraps.com/clients/mackerel/images/picture1.png
    the sites we follow isnt an H3. I could hardcode the h3's in there, i dont mind that, but i can figure out how to take that one out.

    so any help for how to make them uniform?
  • Just checked the codex http://codex.wordpress.org/Template_Tags/wp_list_bookmarks and I'm pretty sure this will give you what you want
    <h3>Sites We Follow</h3>
    <ul>
    <?php wp_list_bookmarks('title_li=&categorize=0'); ?>
    </ul>
  • perfect! thank you!