WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding Image to Sidebar in Blix (3 posts)

  1. madtripper
    Member
    Posted 8 years ago #

    Hello,

    I am trying to use images instead of headings in my sidebar, i.e. for Categories, Archives, etc.

    I believe my code is is order, but the image is still broken. I've already verified that the path to the image is correct, reviewed the code and searched support.

    Can anyone help me out?

    I am using the code below in my sidebar.php file, maybe the problem is in the CSS?:

    <h2><img src="images/spring_flavour/topics.gif" border="0" alt="Categories" class="heading" /></h2>

    <ul class="categories">
    <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>

    my site is girltrip.org

    Thanks in advance :)

  2. maerk
    Member
    Posted 8 years ago #

    <h2><img src="images/spring_flavour/topics.gif" border="0" alt="Categories" class="heading" /></h2>

    Don't use the relative URL, as it will change as the page changes. Use an absolute one: i.e. http:/girltrip.org...

    (obviously it's http:// but if I put that in the forum makes it into a link).

  3. madtripper
    Member
    Posted 8 years ago #

    Thanks! Worked perfectly :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags