- This topic has 12 replies, 3 voices, and was last updated 5 years ago by Tom.
-
AuthorPosts
-
April 4, 2019 at 2:21 pm #859923Kris
Hi Tom and Crew,
Just need a little CSS help.
Navigation:
My client wants a white background with black text on the main primary navigation.
The submenus need to be flipped to black background and white text.
Submenu items need a white boarder around each.Pages – They would like to have a border around all pages so Header, Content with border, Footer.
Thanks much,
KrisApril 4, 2019 at 3:19 pm #859952KrisSorry never mind on the colors of the menu. Of course that was just a setting in customize.
I just need the border stuff.
Also, I found the CSS below to remove the down arrows on the navigation. But this does not then show the dropdowns on hover or click.
.main-navigation ul ul.sub-menu,
.menu-item-has-children .dropdown-menu-toggle{
display: none;
}
.main-navigation .main-nav ul li.menu-item-has-children > a {
padding-right: 15px;
}April 4, 2019 at 4:10 pm #859984LeoStaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can edit the original topic and use the private URL field.
Let me know π
April 5, 2019 at 7:43 am #860650KrisHi Leo,
I put the link in the original topic. It is a temporary link as I am working on Local By Flywheel. This is a clone of what I am working on so do whatever is needed and thanks much.
I also used some CSS from the forum to add two lined main menu items.
Cheers,
KrisApril 5, 2019 at 4:33 pm #860996TomLead DeveloperLead DeveloperSeems your link expired – sorry about that!
This article might help for adding a border around the entire site: https://docs.generatepress.com/article/adding-a-container-wrapper/
Let me know π
April 5, 2019 at 4:36 pm #860998KrisHi Tom, just sent you a new one… if not tonight I will resend on Monday. Enjoy your weekend!
April 6, 2019 at 8:45 am #861459TomLead DeveloperLead DeveloperMissed it again! Did the instructions I linked to help with the full site border?
April 8, 2019 at 5:51 am #862758KrisNo worries. I posted a new one. I will leave this one up all day today. I have not tried your link yet but will this morning. This link has the CSS to remove the down arrows and allow the top menu items to add a </br> for two lines. When I combined those I no longer get the drop downs.
Edit: Tom, your info on adding a site wrapper did the trick. Instead of including the header and footer, I just changed those to after-header and before-footer. Thanks much!
Edit2: I just renewed the link so it should be good for another 8 hours.
Thanks much, Kris.
April 8, 2019 at 3:56 pm #863353TomLead DeveloperLead DeveloperThis custom CSS you added is making it so the sub-menus don’t appear:
.main-navigation ul ul.sub-menu, .menu-item-has-children .dropdown-menu-toggle { display: none; }
If you remove that, they should appear on hover.
April 8, 2019 at 4:03 pm #863362KrisHi Tom, thanks I have them back but would like to remove the down arrows.
Thanks, KrisApril 8, 2019 at 4:08 pm #863372TomLead DeveloperLead DeveloperI would do this:
@media (min-width: 769px) { .menu-item-has-children .dropdown-menu-toggle { display: none; } }
The arrows are necessary on mobile so users can tap them to open the sub-menu.
April 8, 2019 at 4:24 pm #863388KrisAs always awesome support. Thank you.
Kris
April 9, 2019 at 8:45 am #864171TomLead DeveloperLead DeveloperNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.