Forums

Make active category highlighted (2 posts)

  1. ludwell
    Member
    Posted 2 years ago #

    Hi,

    my CSS is pretty poor to say the least. Could someone please advise me how to make the category name stay black while its active?

    http://www.elisabethbell.co.uk

    Thanks a lot..

  2. Izvarinskij
    Member
    Posted 2 years ago #

    First — find <body> in header.php and replace with <body <?php body_class(); ?>>

    Then you add code like this:

    .category-recent-work #one,
    .category-paintings #two,
    .category-mixed-media #three,
    .category-charcoal #four,
    .category-about #five{
    	color:#000;
    	pointer-events:none; /* disables link, and works only in Webkit and Firefox 3.6 */
    }

    Or page instead of category (depends what will be in code, press ctrl-u in browser to see).

    And I’d advice to rename #one, #two, #three etc to .nav_recent, .nav_paintings, .nav_charcoal…

Topic Closed

This topic has been closed to new replies.

About this Topic