• Hello,
    I’ve read a lot about active tab, but my knowledge of CSS is not so good. The problem is how to make active tab highlighted?
    Here is part of header.php:

    <ul id="nav">
    			<li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
    			<?php wp_list_pages('title_li=&depth=2&sort_column=menu_order'); ?>
    		</ul>

    I don’t know how to modify that code, and what to apply in CSS. The rest of my navigation is OK

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try editing your theme’s stylesheet and adding:

    #nav .current_page_item,#nav .current_page_parent,#nav .current_page_ancestor {background:#000;color:#fff;}

    and amend the colors to suit your theme.

    Thread Starter pattonyu

    (@pattonyu)

    Thank you Esmi!
    It works, and do you know how to higlight “home” as active menu page? (I want “home” to be already highlighted, even before I click on it, when I run my-website.com)

    Thread Starter pattonyu

    (@pattonyu)

    I figure out that “home” tab in my website is static home page. So the question is how to make static home page highlighted as ordinary active page in WP?

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

The topic ‘Active tab’ is closed to new replies.