Support » Themes and Templates » Images in Sidebar?

  • I’ve seen some blogs with a small image in the sidebar, and a small description to the right of it.

    Does anyone know how this can be done?

Viewing 7 replies - 1 through 7 (of 7 total)
  • you can hard code it in your sidebar.php file
    < img src = ” blah balh” /> text text text

    Or if you want it to be a background image and you are using Kubrick as a start, use the header.php file to put your file in a css seletor. If you do it like this:

    background-image: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/yourimage.png”);

    it will write out the directory to your stylesheet for you.

    great info guys. thanks.

    now what if i wanted the image and the text to link to one of my pages? example: a picture of myself, and the text says “about.”

    would i have to hard-code the link in as a href tag? if hard-coded, would there then be a way to have that page not listed on my sidebar in another place? (because it would be a duplicate)

    IF I want the image and title to appear at the bottom of the sidebar, should I just place that code at the bottom of sidebar.php?
    Which file should I open to place my images and links???

    Any idea?

    My educated guess would be the sidebar.php file in your theme’s directory.

    can u give me an example?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Images in Sidebar?’ is closed to new replies.