- This topic has 12 replies, 3 voices, and was last updated 4 years, 1 month ago by
Leo.
-
AuthorPosts
-
April 27, 2019 at 10:43 am #881628
Wolf
I have “two” navigations, one before I scroll down that blends in with the Header. And the one after some scrolling. I used your custom css code to get the button in the navbar and changed the color of the text. This works for the “scrolling navigation” but not the header nav. I also tried adding padding but that just makes the button bigger and does not seperate it from the right side. Could you take a look and supply me with some extra css code?
April 27, 2019 at 1:18 pm #881706Leo
StaffCustomer SupportHi there,
I’m not sure if I understand.
What color should the buttons be when it’s in static mode?
You also have some problems with the CSS code added:
https://www.screencast.com/t/FlHs3p9pLet me know π
April 27, 2019 at 1:27 pm #881713Wolf
I want the text on the button to always be white, the background is correct. There is an error with padding because I intentionally set it to 0 (because increasing it doesn’t give the desired result)
April 27, 2019 at 3:32 pm #881765Tom
Lead DeveloperLead DeveloperIn your CSS, try replacing this:
.main-navigation .main-nav ul li.nav-button a
With this:
#site-navigation .main-nav ul li.nav-button a
Let me know π
April 27, 2019 at 11:12 pm #881901Wolf
That, unfortunately, doesn’t work either, the button disappears when scrolling down.
April 28, 2019 at 7:42 am #882309Leo
StaffCustomer SupportI’m still seeing the old CSS added.
can you double check?
Looks like you have caching plugin enabled.
April 28, 2019 at 7:44 am #882311Wolf
I removed the new code provided because it was not working
April 28, 2019 at 7:46 am #882314Wolf
I readded the new ccs code for you to see that it’s not working properly
April 28, 2019 at 7:52 am #882332Leo
StaffCustomer SupportTry adding this as well:
.header-wrap #site-navigation:not(.toggled) .main-nav>ul>li.nav-button>a { color: #ffffff; }
April 28, 2019 at 7:55 am #882337Wolf
That basically inverts my problem, now the button has white text in the nav menu before scrolling down and is still completely missing after scrolling down
April 28, 2019 at 8:01 am #882344Leo
StaffCustomer SupportChange the original selector back to:
.main-navigation .main-nav ul li.nav-button a
April 28, 2019 at 8:06 am #882355Wolf
π finally working; I also just tested out and remembered that margin was “adding space from the outside” so I changed the code from
.main-navigation .main-nav ul li.nav-button a { background-color: #c06040; border: 0px solid #000000; padding-right: 10px; color: #ffffff; line-height: 35px; /*this number will likely need to be adjusted*/ } }
to
.main-navigation .main-nav ul li.nav-button a { background-color: #c06040; border: 0px solid #000000; margin-right: 10px; color: #ffffff; line-height: 35px; /*this number will likely need to be adjusted*/ } }
April 28, 2019 at 8:07 am #882359Leo
StaffCustomer SupportAwesome π
-
AuthorPosts
- You must be logged in to reply to this topic.