Jump to content
Sign in to follow this  
EvaB

How can I leave a page out of the navmenu?

Recommended Posts

EvaB

I am using Platform Base as cms. I want to make a home page, but I don't want the HOME to appear in the navmenu. Is there a way to leave it out? And can I change the font size and position of the subnav elements? I hope someone can help me out. Thanks in advance.

Share this post


Link to post
Share on other sites
catrina

It's possible leave the HOME out of the menu by creating a custom menu using Appearance > Menus. Also, can you post a link to your site? By subnav elements, are you referring to the drop down menus that show when hovering over a menu item or the secondary navigation elements?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
EvaB

Thanks for your fast reply. I created a menu and left HOME out, but it keeps coming back. Only when I make it a draft, it disappears... About the subnav: I am referring to the secondary nav elements. Still very much under construction, but you maybe better to show you what I mean www.totonho.com/wordpress (exhibitions = sub of biography). Thanks!

Share this post


Link to post
Share on other sites
catrina

Please add the following CSS:

ul#menu-nav li.page-item-6 {display: none;}
	ul#menu-subnav-en li#menu-item-251 {font-size: YOURSIZEpx;}

Change YOURSIZE to the number value for the subnav font size you want. Also, how do you want to change the position of the subnav?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
EvaB

OK, thanks, just one more thing: where do I add the css exactly... (sorry :)

Share this post


Link to post
Share on other sites
kak8500

I can't seem to get this code to work. I don't want it to say index or home in the main navigation of dev.zeriongroup.com. I'm not very familiar with CSS. Thanks!

Share this post


Link to post
Share on other sites
catrina

Actually, replace: ul#menu-nav li.page-item-6 {display: none;} with this one:

.home .page-item-6 {display: none;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
EvaB

Thanks Catrina! That's clear and it works! Now I would like to line the E of exhibitions with the B of biography. Or: every subpage with the parent page (in case I make more subpages). Is that possible? And do you have a solution for my HOME in nav problem? I want to use the Home as a sort of landing page and therefore I don't want HOME to show in the nav. Thanks again for your help.

Share this post


Link to post
Share on other sites
EvaB

Hi, I just tried [.home .page-item-6 {display: none;} ] but it works only on the bio page?!

Share this post


Link to post
Share on other sites
EvaB

Now, I just found out that this one [ul#menu-nav li.page-item-6 {display: none;}] is working for me! Thank you, problems solved!

Share this post


Link to post
Share on other sites
EvaB

Sorry, just one more thing. [ul#menu-nav li.page-item-6 {display: none;}] is working for the English version of the site, but not for the translated versions... Can you help me with that? I am using WPML. Thanks again! Eva

Share this post


Link to post
Share on other sites
EvaB

I have been testing and now it works, but now the font size of the menu items is very small. Only when you are on a page, the font size it right. I have used [ul.main-nav li.page_item {font-size: 20px;}] to set the size. Is there anything I can do to make the font-size consistent? I am so sorry to keep on asking....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×