Support » Themes and Templates » My Highlighted links aren't highlighting correctly

  • My website that I am working on is:

    I am trying to eliminate the top black nav. bar and move all the pages & posts into the one below the page header. These are rollover/highlighted buttons. I figured out how to add the pages onto this bar BUT I don’t know enough code to make it highlight correctly. For example, when you click on the “Home” Button, not only does it light up but the “Contact Us” and “Events” are also lit up. The “Energy Savings Solutions” button is correct but it is a post, not a page. I don’t know how to change it to be correct.

    Here is my code

    <ul class="nav">
            	if ( get_option('woo_custom_nav_menu') == 'true' ) {
            		if ( function_exists('woo_custom_navigation_output') )
    					woo_custom_navigation_output('name=Woo Menu 2&depth=6');
    			} else { ?>
    	            <?php if ( is_home() OR is_front_page()) $highlight = "page_item current_page_item"; else $highlight = "page_item"; ?>
    	            <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>"><?php _e('Home', 'woothemes') ?></a></li>
    	            <?php wp_list_categories('sort_column=menu_order&depth=6&title_li=&exclude='.get_option('woo_cats_exclude')); ?>
    		<li class="<?php echo $highlight; ?>"><a href=""><?php _e('Events') ?></a></li>
    		<li class="<?php echo $highlight; ?>"><a href=""><?php _e('Contact Us') ?></a></li>
    	        <?php } ?>
            </ul><!-- /#nav -->

Viewing 1 replies (of 1 total)
  • esmi


    Forum Moderator

    I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s vendors.

Viewing 1 replies (of 1 total)
  • The topic ‘My Highlighted links aren't highlighting correctly’ is closed to new replies.