Forums

How to use an image on sidebar dynamic section title? (2 posts)

  1. untrue
    Member
    Posted 3 years ago #

    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:
    http://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'); ?>

  2. <h2><?php _e('Archives'); ?></h2>

      <?php wp_get_archives('type=monthly'); ?>
  3. 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

  • chaoskaizer
    Member
    Posted 3 years ago #

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

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.