My Highlighted links aren't highlighting correctly (2 posts)

  1. midwestwindow
    Posted 3 years ago #

    My website that I am working on is: SoDakEnergySolutions.com/smart

    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="http://sodakenergysolutions.com/smart/events"><?php _e('Events') ?></a></li>
    		<li class="<?php echo $highlight; ?>"><a href="http://sodakenergysolutions.com/smart/contact"><?php _e('Contact Us') ?></a></li>
    	        <?php } ?>
            </ul><!-- /#nav -->
  2. esmi
    Forum Moderator
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic