Adding Home Link to main menu

Support Area Forums United Adding Home Link to main menu

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  Bill Robbins 3 years ago.

Viewing 7 posts - 1 through 7 (of 7 total)
URL to the page in question: http://servingyourpurpose.com
  • Author
    Posts
  • #20819

    Ashley Davis
    Participant

    Client just decided to add a “Home” link in the top menu.
    Is there a way to add just the word Home without an empty mega menu drop down showing, and have just the word link back to the home page?

    You can see how I currently have it set up with the unwanted purple drop down and no actual link back to the home page. http://www.servingyourpurpose.com

    #20824

    Ashley Davis
    Participant

    Didn’t want the broken link on the site for more than 24hrs, so took it down. But here’s a screen shot of what was happening before.

    How do I just add the text that directly links to the page without a drop-down?

    #20827

    Bill Robbins
    Keymaster

    Hello Ashely,

    You can swap out one of the mega menu locations for a direct link. There’s a post at http://support.organizedthemes.com/forums/topic/mega-menu-link/ that can show you how to make that change.

    If you run into trouble, let me know.

    Thanks,
    Bill

    #20830

    Ashley Davis
    Participant

    Hmm…. followed your instructions, but don’t know what I did wrong. Empty drop-down is still showing and not linking to home page. Here’s the code I have now.

    
    
    <?php if(of_get_option('mega_name_5', $single = true) != ""){ ?>
    			
    			<li id="mega-five">
    	
    				<a href="http://www.servingyourpurpose.com"><?php echo of_get_option('mega_name_5',''); ?></a>
    		
    				<div class="cbp-hrsub">
    		
    					<div class="cbp-hrsub-inner"> 
    						
    						<?php dynamic_sidebar('mega_menu_5') ?>
    							
    					</div><!-- .cbp-hrsub-inner -->
    		
    				</div><!-- . dcbp-hrsub -->
    
    
    #20832

    Bill Robbins
    Keymaster

    Goodness. It looks like you did set that up correctly. But it looks like that’s not quite going to work. The jQuery that makes the mega menu open up will prevent the links at the top from opening up something different.

    I experimented just a bit and came up with another option for you. The drawback here is the home button will have to stay on the left. It won’t be possible to include it in the menu items that are centered since it’s in a separate parent container.

    Delete what you added in earlier. You can actually remove all reference to that link.

    Then edit the header.php file. Right below this:

    
    <div id="header-content" class="clearfix">
    

    add in this:

    (Be sure to copy that code directly from the support site and not the notification email)

    and save your changes. When I gave that a shot, I ended up with something like the attached image. While it works, it won’t be centered there.

    #20842

    Ashley Davis
    Participant

    Bummer we can’t make it centered. But I’d rather have it there in a left aligned menu than not at all. It’s up and working great now! Thanks Bill!

    #20845

    Bill Robbins
    Keymaster

    I’m glad it’s working. Sorry about the loss of the centering though. Happy launching 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Adding Home Link to main menu’ is closed to new replies.