WordPress.org

Ready to get started?Download WordPress

Forums

Images on sidebar headings (3 posts)

  1. DrStir
    Member
    Posted 5 years ago #

    Does anyone know how to replace the h2 pages/posts/categories text headings with images?
    I'm trying to do my first theme customisation, based on the 'Bob-la-simple' theme - the easiest and cleanest I could find. Here's what I'm trying to achieve: http://www.goodgrief.co.uk/visual. And here's how far I've managed to get: http://www.goodgrief.co.uk. I've managed to replace the Archives heading with an image. But the other two are proving a real headache :o(
    I need to add some div tags between the ul and li list tags. But these list tags seem to be generated by the php files wp_list_pages and wp_list_categories. And my knowledge of php would fit on the back of a postage stamp.
    If anyone could shed a little light in my direction, I'd be very grateful. Thanks.

  2. moshu
    Member
    Posted 5 years ago #

    Both mentioned template tags have the option NOT to display the heading. Just read the parameters. And then insert your images in the sidebar above them as you would do with any image.

  3. DrStir
    Member
    Posted 5 years ago #

    Many thanks, Moshu. I didn't realise it was that simple!
    Can I just check something with you? I experimented with the code to remove the headings - changing the parameters from
    <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> to
    <?php wp_list_categories('show_count=1&title_li= ' ); ?>
    Is this the correct way to do it?
    Thanks again,
    David

Topic Closed

This topic has been closed to new replies.

About this Topic