- This topic has 13 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
February 7, 2023 at 7:18 pm #2525330
ammgbr
Hi,
On my homepage > first accordion (title: media) > tab > first , second and third tabs > I have navigation blocks whose background appears white against the grey background of the tab.
Is there a way to fix this so that I don’t have this white/grey outline around the navigation blocks?
February 7, 2023 at 7:29 pm #2525341Fernando Customer Support
Hello there,
For clarity, can you provide a screenshot of the specific element you want to alter? I can’t seem to see the outline you’re referring to.
Uploading Screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots
February 8, 2023 at 3:10 am #2525613ammgbr
Ofc I provided a link in the priv info
The nav block doesn’t take the background colours of the tabs block and its outline remains white
February 8, 2023 at 5:30 am #2525771David
StaffCustomer SupportHi there.
try this CSS:
nav.wp-block-navigation .wp-block-navigation-item__content { background-color: transparent; }February 8, 2023 at 6:50 am #2525869ammgbr
EDIT: apologies for coming back to this, that solution solved the previous issues. It has nevertheless cancelled the submenu colour options I have set with CSS. Is there a way to fixed this? Thank you
February 8, 2023 at 7:20 am #2525890David
StaffCustomer SupportIncrease the specificity of your CSS like this:
nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 16px; color: #101010; background-color: #EEEEEF; }February 8, 2023 at 7:57 am #2526100ammgbr
Hi, I do apologize I have tried that but now the submenu has a vertical white stripe on the side . I am unsure what part of the css I need to amend?
February 8, 2023 at 9:05 am #2526177David
StaffCustomer SupportAdd this CSS:
ul ul .wp-block-navigation-item__content { grid-column: 1 / -1; }February 8, 2023 at 9:07 am #2526183ammgbr
EDIT: apologies, the white stripe is removed ut the on hover colour is not applied for the submenus
February 8, 2023 at 9:09 am #2526186David
StaffCustomer SupportPhew… that navigation block is a mess lol
Glad to hear its workingFebruary 8, 2023 at 9:10 am #2526188ammgbr
EDIT: apologies, the white stripe is removed ut the on hover colour is not applied for the submenus
I agree, the nav block is really difficult to work with..
February 8, 2023 at 9:13 am #2526192David
StaffCustomer SupportMore CSS… lol :
nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background-color: #f00; }February 8, 2023 at 9:16 am #2526196ammgbr
Hi, eventually that’s sorted now 😀
February 8, 2023 at 9:21 am #2526202David
StaffCustomer SupportGlad to hear that
-
AuthorPosts
- You must be logged in to reply to this topic.