Support » Themes and Templates » Tab selected not working

  • I’m trying to set up a tabs menu at the top of the page. Problem is, even when I click on the link, the tab itself isn’t selected (I want to change the background color to #ff3300).

    This is the code I use on header.php:

    <ul class=”cat-nav”>
    <li class=”tab”>Test 1
    <li class=”tab”>Test 2

    And this is the style.css code. I’ve tried differet things but none of them work:

    .cat-nav {list-style:none; padding-right:0; width:100%;}
    .cat-nav li {position:relative;display:block; width: 126px; background:#59aaf2; float:right; margin-left:1px; height:42px; line-height:42px;; text-align:center;}
    .cat-nav li a {color:white !Important; font-size:14px;}
    .cat-nav .tabselected {background:#ff3300;}

    .cat-nav .current_page_item {

    .current-cat {
    background #ff3300;

    What am I doing wrong?

    Thanks 🙂

  • The topic ‘Tab selected not working’ is closed to new replies.