Adding Home Link to main menu
Support Area › Forums › United › Adding Home Link to main menu
Tagged: Home page
- This topic has 6 replies, 2 voices, and was last updated 11 years, 10 months ago by
Bill Robbins.
-
AuthorPosts
-
July 15, 2014 at 11:16 #20819
Ashley Davis
ParticipantClient 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
July 15, 2014 at 12:02 #20824Ashley Davis
ParticipantDidn’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?
July 15, 2014 at 12:06 #20827Bill Robbins
ParticipantHello Ashely,
You can swap out one of the mega menu locations for a direct link. There’s a post at https://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,
BillJuly 15, 2014 at 12:56 #20830Ashley Davis
ParticipantHmm…. 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 -->July 15, 2014 at 13:24 #20832Bill Robbins
ParticipantGoodness. 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.
July 15, 2014 at 16:09 #20842Ashley Davis
ParticipantBummer 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!
July 15, 2014 at 16:11 #20845Bill Robbins
ParticipantI’m glad it’s working. Sorry about the loss of the centering though. Happy launching 🙂
-
AuthorPosts
- The topic ‘Adding Home Link to main menu’ is closed to new replies.

