WordPress.org

Forums

[resolved] How to format background for sidebar links with CSS? (2 posts)

  1. ABTOP
    Member
    Posted 8 years ago #

    In my sidebar.php there is a line <?php get_links_list(); ?>, which inserts all the links under their respective categories into the sidebar. So far so good.
    I want to change the background of the links, but leave the background of the link categories headers as they are. The problem is that if I hang some CSS on that line, the formating will apply to everything - headers and links.

    Is there any way to format the links separately from their headers?

  2. ABTOP
    Member
    Posted 8 years ago #

    The solution is to apply CSS to class "linkcass-x", where 'x' is the number of the link category.

Topic Closed

This topic has been closed to new replies.

About this Topic