- This topic has 12 replies, 3 voices, and was last updated 3 years, 11 months ago by
Tom.
-
AuthorPosts
-
April 4, 2019 at 2:21 pm #859923
Kris
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,
KrisGeneratePress 2.2.2GP Premium 1.7.8April 4, 2019 at 3:19 pm #859952Kris
Sorry 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 #859984Leo
StaffCustomer 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 5, 2019 at 7:43 am #860650Kris
Hi 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 #860996Tom
Lead 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 5, 2019 at 4:36 pm #860998Kris
Hi 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 #861459Tom
Lead DeveloperLead DeveloperMissed it again! Did the instructions I linked to help with the full site border?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 8, 2019 at 5:51 am #862758Kris
No 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 #863353Tom
Lead 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 8, 2019 at 4:03 pm #863362Kris
Hi Tom, thanks I have them back but would like to remove the down arrows.
Thanks, KrisApril 8, 2019 at 4:08 pm #863372Tom
Lead 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 8, 2019 at 4:24 pm #863388Kris
As always awesome support. Thank you.
Kris
April 9, 2019 at 8:45 am #864171Tom
Lead DeveloperLead DeveloperNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.