• Hey guys,

    I was wondering how I could add small image bullets before the links in my sidebar.

    I know you can insert an image as the entire link, but I want to keep my text links and just use custom bullets for each of my friends on my blogroll.

    Any help would be greatly appreciated. ??

Viewing 3 replies - 16 through 18 (of 18 total)
  • just realised this is pretty much geoffe’s suggestion, but puts the css in your normal file, and you don’t need to enter it specifically for each li

    I just made a tweak to my WP 2.1 setup to show both the name and image of the link.

    This doesn’t per-se address the BOY/GIRL scenario outlined above, but it does allow me now to just set the image URL for each link using WP admin and have both show up.

    I edited the wp-includes/bookmark-template.php file thusly:

    if ( $row->link_image != null && $show_images ) {
      if ( strpos($row->link_image, 'http') !== false )
      #$output .= "<img src=\"$row->link_image\" $alt $title />";
    
       $output .= "<img src=\"$row->link_image\" $alt $title />&nbsp;" . $name;
       else // If it's a relative path
      #$output .= "<img src=\"" . get_option('siteurl') . "$row->link_image\" $alt $title />";
    
       $output .= "<img src=\"" . get_option('siteurl') . "$row->link_image\" $alt $title />&nbsp;" . $name;
    
      } else {

    The commented lines were how I found them in the default build, my modifications just below. All I did was add the $name variable to the output. I had to do it on two lines – one for when the image is local(relative) and one for when it’s absolute.

    Hey “jessekanner” I tried editing the wp-includes/bookmark-template.php file and it doesn’t appear to be working. I am on WP 2.1.2 and cannot see where I botched this.

    Here is what I currently have:

    <?php wp_list_bookmarks(‘show_images=1&show_description=1&orderby=rand&order=ASC&limit=10’); ?>

    Any help would be appreciated.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Image bullets in sidebar links…’ is closed to new replies.