• Resolved baphomet

    (@baphomet)


    Hi.
    I want to replace certain chunks of text in my sidebar (“Categories”, “Archives”, etc.) with corresponding images and it would be extremely cool if someone told me how to do that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just open up your template’s sidebar.php file and add the approrpriate HTML code to wherever you would like the images to appear and walla.

    Another easy way is handle it using CSS.

    Define a categories css and add the image url and set it into the left or right side before the “categories” word appear.

    CSS
    #categories{
    background:url(‘img/categories.gif’) 0 1px no-repeat;
    }

    When u put in sidebar, use something like <div id=”categories”> <?php wp_list_cats(‘sort_column=name’);
    </div>

    Is that what u want?

    Thread Starter baphomet

    (@baphomet)

    Yeah, thanks, it’s done.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Images in the sidebar’ is closed to new replies.