Tabs highlight issue with static pages set in Settings > Reading
-
I am using static pages with tabs. In Settings > Reading I have Front page: Home, and
Posts page: Blog. When I am on Blog page the Home tab and Blog tabs are highlighted. When I am on the Home page, no tab is highlighted.Here is the code in my header which I believe is calling the highlight tabs:
<div id="foxmenucontainer"> <div id="foxmenu"> <ul> <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?> <li class="<?php echo $highlight; ?>"><a>">Home</a> <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude=1480'); ?> </ul> </div> </div>
I would like to simply have the Home page highlight on Home, Blog on Blog and thats it. Any help would be appreciated. Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Tabs highlight issue with static pages set in Settings > Reading’ is closed to new replies.