• 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: https://www.goodgrief.co.uk/visual. And here’s how far I’ve managed to get: https://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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter drstir

    (@drstir)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images on sidebar headings’ is closed to new replies.