• Hello all,

    I’m wondering how to use an image on the sidebar dynamic section content (categories, links, recent etc).
    I noticed creative review blog is actually using it. You can check it here:
    https://www.creativereview.co.uk/crblog/

    On the left bar ex. Most recently commented title is an image.

    I’ve tried to tune in my .php playing with:

      <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(1) ) : else : ?>

      <h2><?php _e(‘Categories’); ?></h2>

      <?php wp_list_cats(‘sort_column=name&hierarchical=0’); ?>

    • <h2><?php _e(‘Archives’); ?></h2>
      <?php wp_get_archives(‘type=monthly’); ?>

    But it looks like it dosn’t work.

    Basically i want to replace the <h2><?php _e(‘Archives’); ?></h2> with an ../images/archives.gif
    Does I have to tune the style.css or to edit the .php?
    By now i was not able to figure that out.

    Any help would be appreciated,
    thanks.

    M

Viewing 1 replies (of 1 total)
  • it seem like your code will only work if there is no active widgets.

    I think you should try editing the sidebar widgets “heading title” using CSS instead. try google for “css text to image replacement”.

Viewing 1 replies (of 1 total)
  • The topic ‘How to use an image on sidebar dynamic section title?’ is closed to new replies.