- This topic has 9 replies, 4 voices, and was last updated 5 years, 10 months ago by Tom.
November 17, 2015 at 2:48 pm #153804Marla
Ok, so I’m a total newbie and have NO clue how to use css. I purchased GP Premium and have been using the add-ons to tweak my website. It works well enough but without css I cannot create precisely what I want. Nevertheless, I’ve managed to put together a basic website with GP!
Anyway, one of my MANY questions is:
How do I make a parent item on my navigation bar non-linking? I want the name of the parent page displayed on the nav-bar (e.g., Services Offered) but I want folks to use the sub-navigation pages (e.g., Service A, Service B…) to access information. Am I making sense?
I’ve scoured the support forum but many of the potential fixes for my problems is in css and so I’m kind stuck. Can I do this without css?
Thanks in advance!
MarlaNovember 17, 2015 at 3:13 pm #153811Stacey UsborneStaffCustomer Support
This article might be helpful:
Let me know.November 17, 2015 at 4:42 pm #153830Marla
Thanks for that link! I had checked menus out before but wasn’t sure what they were for…
So, I’ve watched the animation (how to create a parent page that does not link anywhere) about 20 times.
I did exactly as it shows but it does not seem to be working – the parent page is still an active link.
Also, when I mouse-over parent menu on the nav-bar, it still shows an active url in the bottom left corner of my screen. 🙁
What am I doing wrong? Ideas?
MarlaNovember 18, 2015 at 12:47 am #153874TomLead DeveloperLead Developer
Your best bet is to delete the current menu item in your menu which links to the active URL.
Now create the new parent item as a Custom Link with no URL.
Re-add the sub-menu to the new custom link with no URL, and save your menu.
If that doesn’t work, make sure the theme location is set: https://generatepress.com/knowledgebase/using-menus/#set-theme-locationNovember 23, 2015 at 5:46 am #154954Marla Bigel
Thanks for your reply! So that partially worked. I made a custom link with no url but when I set the theme location to primary and then viewed the site, that menu item was the ONLY one visible on my navigation bar. Yikes!
I have several parent pages that will have a drop-down menu but that I don’t want a url for so how do I do that?
MarlaNovember 23, 2015 at 9:05 am #154993TomLead DeveloperLead Developer
Was it the only menu item you added to the menu before setting the theme location? You’ll need to build your menu in there just as you’d like it, then it should display perfectly.
The process for creating parent menu items without URLs is outlined above – adding them as Custom Links with no URL (or a hashtag: #) is the way to go.
Just be sure to build your entire menu in that area.
Let me know if you need more info or not 🙂November 24, 2015 at 5:46 am #155369Marla Bigel
I went in, deleted all previous menus then started again.
Then, I did the following for ALL of the menus with sub-items:
1. Created new menu (e.g., “Services”). Saved menu.
2. Added menu items/pages (e.g., sub1, sub2) and arranged them in the order I want within the menu structure section. Saved menu.
3. Clicked Custom Links tab, added a # to the “URL” space.
4. Typed the name of the parent page (i.e., “Services”) in the space called “Link Text”. Saved menu.
I don’t know what “menu settings” does but if I select “primary theme” for any of the individual menus that have sub-items, that is the only menu that shows up on the navigation bar.
Something is clearly amiss! Thanks for your patience! 🙂
MarlaNovember 24, 2015 at 10:56 pm #155594TomLead DeveloperLead Developer
I have a feeling you’re creating a new menu for each menu item?
If so, you only want to create one “menu” – so you should only click the “Create Menu” button once.
Once the one menu is created, add all of your menu items into that one menu.
Then set the theme location and you should be done.
You should see all of your menus in your one menu screen when you’re done.November 25, 2015 at 6:14 am #155647Marla Bigel
It worked! Duh, I should have figured that out on my own… but you are brilliant! Thank you for being so patient, responsive and supportive!
I hope my newbie struggles help someone else!
Time to buy you a coffee 🙂
MarlaNovember 25, 2015 at 10:31 am #155691
- You must be logged in to reply to this topic.