Menu links colour change, when scrolling black

Multipurpose WordPress Theme Forum Support
GK User
Wed Sep 09, 2015 10:37 am
Hi there,
I would need to change the menu link colours of some pages due to pictures being rather dark and therefore not readable – hence they are white. However, I forgot that there is a scrolling menu where they should be black again.

– How can I have two colours (white when normal – black when scrolling narrow menu)
– How can I adress category pages to do the same for their links.

Code: Select all
 .category-id-8 .nav-menu > li > a,
 .page-id-27 .nav-menu > li > a,
 .page-id-8 .nav-menu > li > a,
 .page-id-10 .nav-menu > li > a,
 .page-id-546 .nav-menu > li > a,
 .page-id-549 .nav-menu > li > a,
 .page-id-552 .nav-menu > li > a,
 .page-id-555 .nav-menu > li > a,
 .page-id-567 .nav-menu > li > a,
 .page-id-557 .nav-menu > li > a {
     color: #fff;
}
User avatar
Senior Boarder

GK User
Wed Sep 09, 2015 9:53 pm
Hi,

If you want to do this for all pages, there's an option in Customizer - >Features section (Dark image background)

for the default menu links:
Code: Select all
.nav-menu > li > a, .nav-menu > ul > li > a {
color: ...;
}

for the fixed menu - when you are scrolling to the top, use this code:
Code: Select all
.gk-fixed-nav .nav-menu > li > a,
.gk-fixed-nav .nav-menu > ul > li > a {
  color: #111;
}


for the specific categories - add
Code: Select all
.category-X
before the css rule, where the X is a category id.
User avatar
Moderator

GK User
Fri Sep 11, 2015 3:29 pm
Perfect thanks very much!!
User avatar
Senior Boarder

GK User
Mon Sep 21, 2015 11:50 pm
hmm for some reason that does not work for me. Is this because of the class being fixed inactive?
User avatar
Senior Boarder

GK User
Tue Sep 22, 2015 10:42 am
Could you send me again an URL to your page where do you want to change it, and please describe the issue again.
User avatar
Moderator


cron