Archived topic
Use Settings in Child Theme css
18 replies · Started by Phuc on March 18, 2020
Hahah that gave me a good laugh! No thanks needed, I'm glad I could help! Stay safe :)
i need to assign the color value of this element to another div.
Element Type > Header > Site Header >Navigation Colors > Navigation Text

Hi. I need something like this too, but I can't get the Navigation Text color value. What should I use instead of $generate_settings['background_color'] .
elements/class-hero.php
$css->set_selector( '.header-wrap #site-navigation:not(.toggled) .main-nav > ul > li > a, .header-wrap #mobile-header:not(.toggled):not(.navigation-stick) .main-nav > ul > li > a, .header-wrap .main-navigation:not(.toggled):not(.navigation-stick) .menu-toggle, .header-wrap .main-navigation:not(.toggled):not(.navigation-stick) .menu-toggle:hover, .main-navigation:not(.toggled):not(.navigation-stick) .mobile-bar-items a, .main-navigation:not(.toggled):not(.navigation-stick) .mobile-bar-items a:hover, .main-navigation:not(.toggled):not(.navigation-stick) .mobile-bar-items a:focus' );
}
$css->add_property( 'color', esc_attr( $options['navigation_text_color'] ) );
Hi @onalti,
Can you open a new topic for this? So we don't convolute/derail solved topics for other users.
Opening a new topic also allows you to use the private information text field feature incase we need to ask more details -
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Thank you.