• He guys, now, this code gives me exactly the output I want in the sidebar.

    Thing is, I would like to have each of these 3 categories in a different color.

    Do I have to make a list and sort stuff new or is there a possibility to add different link/hover/visited colors via stylesheet right in this code?

    I read the ‘Customizing your sidebar’ stuff and all that but it’s a little much at once.

    Thank you so much for your help!

    <div id="sidebar">
    <ul>
    <?php wp_list_categories('orderby=name&child_of=1&title_li='); ?>
    </ul>
    <br />
    <ul>
    <?php wp_list_categories('orderby=name&child_of=3&title_li='); ?>
    </ul>
    <br />
    <ul>
    <?php wp_list_categories('orderby=name&child_of=4&title_li='); ?>
    </ul>
    </div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Bobworth

    (@bobworth)

    Ok, so I figured I only need to change the color of the middle categorieslist. (child_of=3)
    I would like it to support ‘hover’ and ‘visited’ states.

    So I added this to the bracket:

    &format=custom&before=<h6>&after=</h6>

    I tried with different styles I added to the stylesheet. But my CSS knowledge is very limited. So it didn’t work out.

    If you could help me out here I would be very grateful, I’m kinda close… …right?

    Thread Starter Bobworth

    (@bobworth)

    Ok. Lets say I want only one of those category-blocks in a different color.
    No hover etc. just a simple color instead of the default ‘sidebar a’.

    How should I proceed? I guess:
    1. add the style to the stylesheet
    2. call the style (like in my last post?)

    I’m pretty sure one of you guys knows whats going on. Please help me! (?)

    Look at your source code… This should help:
    Finding_Your_CSS_Styles

    Thread Starter Bobworth

    (@bobworth)

    Thank you moshu,

    thing is, there is NO style associated. So I have to add it.

    And I’ve no idea how I should name it. And then how to call it.

    Until now I just pasted stuff together and it worked, well you can’t be lucky all the time…

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

The topic ‘Sidebar categories color’ is closed to new replies.