- This topic has 9 replies, 3 voices, and was last updated 5 years ago by
Ying.
-
AuthorPosts
-
March 9, 2021 at 11:34 am #1688620
Chloe
Hi there
I have posted on this thread https://generatepress.com/forums/topic/add-third-navigation-menu-gpp-1-8/#post-1688547 but now posting new topic so I can add details of the site.
I would like to make the third menu mobile friendly. Also if I can make the active page link a different colour. I can’t work out how to do this.
Many thanks.
Chloe
March 9, 2021 at 11:59 am #1688642Ying
StaffCustomer SupportHi Chloe,
Try add this CSS in customizer > additional css:
.discrimination-nav ul { flex-flow: row wrap; }Let me know 🙂
March 9, 2021 at 12:40 pm #1688684Chloe
Hi Ying! That’s great thank you. Works perfectly.
Is there a way to change the colour of the link for the page that you are on? In the same way the other nav does. For example the background is lighter on the page that you are on in the navigation.
Thank you in advance.
Chloe
March 9, 2021 at 1:05 pm #1688704Ying
StaffCustomer SupportYou could try something like this:
.discrimination-nav .menu-discrimination-container ul li.current_page_item a { background-color: #f58538; }Let me know how it works 🙂
March 10, 2021 at 3:03 am #1689320Chloe
Hi Ying. This works perfectly! Thank you so much.
Speak soon.
Chloe
March 10, 2021 at 9:15 am #1689957Chloe
Hi Ying. Sorry me again.
I had a quick question. I have several different navigations for each page. I have put examples in the Private information. Is there a way of doing this without creating a new hook, snippet and CSS for each one?
Thank you for any advice.
Chloe
March 10, 2021 at 9:42 am #1690003Leo
StaffCustomer SupportYou could try if a plugin like this works:
https://en-ca.wordpress.org/plugins/if-menu/March 10, 2021 at 9:47 am #1690011Ying
StaffCustomer SupportI inspected the navigations, they all have different IDs and css classes, so yes, if you want to create more of them, you’ll need to create more hooks individually for different pages.
For CSS, you could use
,to separate css classes and the css you write below will apply to them all, for example:.discrimination-nav .menu-discrimination-container ul li.current_page_item a, .unfairdismissal-nav .menu-unfair-dismissal-container ul li.current_page_item a { background-color: #f58538; }March 10, 2021 at 1:18 pm #1690270Chloe
Oh that’s great. Thanks both. I tried if menu, but not quite what I need. I will try the CSS and create the hooks. Thank you again.
Chloe
March 10, 2021 at 1:36 pm #1690287Ying
StaffCustomer SupportYou are welcome Chloe 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.