• I’m using the sweetpink theme in one of my wordpress sites:
    danceimagesbybj.com
    I have an image as an underline decorative icon below the headings in the sidebar. I can’t get it for the links heading. If I insert it, it either goes above the links heading or below the actual links. Here is the sidebar code for
    <div id=”sidebar”>

    • <h2>Home
      <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/h2.gif” class=”righth2img” alt=”h2″ /></h2>

    <h2><?php _e(‘Pages’); ?>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/h2.gif” class=”righth2img” alt=”h2″ /></h2>

      <?php wp_list_pages(‘exclude=25,89,90,91,92,93,94,95,96,97,98,99,18,7,8,9,10&title_li=<h2></h2>’ ); ?>

    <h2><?php _e(‘Categories’); ?>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/h2.gif” class=”righth2img” alt=”h2″ /></h2>

      <?php wp_list_cats(‘exclude=5,7,8,9’);?>

    <h2>Calendar<img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/h2.gif” class=”righth2img” alt=”h2″ /></h2>
    <br>
    <img src=”images/calendar.gif”>

    <h2><?php _e(‘Archives’); ?><br/>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/h2.gif” class=”righth2img” alt=”h2″ /></h2>

      <?php wp_get_archives(‘type=monthly&limit=3’); ?>

    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <ul<?php get_links_list(); ?>

    <h2><?php _e(‘Meta’); ?>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/h2.gif” class=”righth2img” alt=”h2″ /></h2>

      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • <?php wp_meta(); ?>

    </div>

    How can I get the images/h2.gif under the Links heading?

  • The topic ‘positioning an image in the sidebar’ is closed to new replies.