Tagged: anchor points, main menu
-
AuthorPosts
-
October 1, 2013 at 12:52 am #168477
Hello Devin, or anyone from the support team who may be able to help on this,
I wrote a post in the Enfold new features thread (filed under post #164794) about an issue I was having with linking to anchor points using absolute links, and got the following response from Devin, offering an alternative solution which I think may work. Here’s what he wrote:
Hey!
I’m not sure this is actually “fixable”. The issue is that as long as you are on the home page the absolute about link will be active because the url is the current page.
The one page layout using anchors is just that: a one page layout. What would be a better solution would be to have an alternate menu for the blog page with links back to the home page. You could do this using css to hide the menu items on each page. Just go to your menus manager and in the top right “screen options” tab click the box to show classes on your menu items. Add hide-home to the items you want to hide on the home page and hide-blog for the items you want to hide on the blog page.
Then add the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:
#top.home .hide-home{ display: none; }
#top.blog .hide-blog {display: none;}Cheers!
DevinI was hoping to respond directly to that, but didn’t see the option, maybe since it was buried in the thread. I wanted to say, I got the solution to work for my homepage, but it doesn’t seem to be working for my blog section. All the menu items I’ve tagged as “hide-blog” are still visible in the blog page, as seen here:
Please disregard the layout and content for now, since that has other issues…
Can you please help me check what may be going wrong with the top menu items? I really would just want to make the “home” selection visible in the blog section, since everything else is intended for anchor points in the homepage. Instead, everything is visible.
Until I resolve that and a few other issues I have with my blog layout, I’ve removed the link to the blog section from my homepage, http://www.omarramirez.net
Please help!
thanks!
Omar
October 1, 2013 at 7:36 am #168588Hello,
So, before you respond to the previous message, I need to say, I just discovered how to get the alternate top menu to work for http://omarramirez.net/blog – by going to appearance/customize/static_front_page under my wordpress dashboard/options and selecting “Blog” as my “Posts Page,” while keeping “Home” as my “Front Page” … that works to active the “hide-blog” tag and hide unwanted selections on what can be considered my blog homepage. However, once I click on anything, including a post category, a post header, etc, I just go back to the original header from my Home Page.
Is there any way to assign a tag like “hide-blog” for every page other than my home page? Because the selections currently on my Home Page are really only relevant to that single page, since they are all relative anchor points in a one page layout.
thanks
Omar
October 1, 2013 at 7:38 am #168590works to activate* the “hide-blog” tag .. sorry, typo
October 2, 2013 at 9:09 am #169195Hello!
I didn’t find the original thread but since Enfold 2.0 it shouldn’t be necessary to fiddle around with css to hide/show certain menu items on different pages. I added a “conditional menu” feature to the theme: https://kriesi.at/support/topic/enfold-conditional-menu/ which allows you to define conditions which determine when a menu item should be displayed or should be hidden. You just need to select the “Show” or “Hide”, then select “Page” and insert your blog page id into the text field: http://www.clipular.com/c?6747199274745856=o1wyIbrrbgLc76ITDPikF4Wvu7E&f=.png
If you want to show a menu item just on the blog page select “Show” – “Page” and insert the blog page id. If you want to hide a menu item just on the blog page use “Hide” – “Page” and insert the blog page id. You can also insert several page ids – separate them with a comma.
Best regards,
PeterOctober 2, 2013 at 10:39 am #169231Cool, thanks Peter, that seems to do the trick!
-
AuthorPosts
- The topic ‘Hide Main Menu Items and Create Alternative Main Menu’ is closed to new replies.