Menu color
-
Hi!
I’m creating child theme from Wallstreet theme.
I want to change color for menu which is in theme-menu.css.
But, whatever I do, my child theme calls style from theme-menu.css.I’m wondering is this function problem?
function webriti_scripts()
{
$current_options = get_option(‘wallstreet_pro_options’);
wp_enqueue_style(‘wallstreet-style’, get_stylesheet_uri() );
wp_enqueue_style(‘wallstreet-bootstrap’, WEBRITI_TEMPLATE_DIR_URI . ‘/css/bootstrap.css’);
wp_enqueue_style(‘wallstreet-theme-menu’, WEBRITI_TEMPLATE_DIR_URI . ‘/css/theme-menu.css’);
wp_enqueue_style(‘wallstreet-media-responsive’, WEBRITI_TEMPLATE_DIR_URI . ‘/css/media-responsive.css’);
wp_enqueue_style(‘wallstreet-font’, WEBRITI_TEMPLATE_DIR_URI . ‘/css/font/font.css’);
wp_enqueue_style(‘wallstreet-font-awesome-min’, WEBRITI_TEMPLATE_DIR_URI . ‘/css/font-awesome/css/font-awesome.min.css’);
wp_enqueue_style(‘wallstreet-tool-tip’, WEBRITI_TEMPLATE_DIR_URI . ‘/css/css-tooltips.css’);wp_enqueue_script(‘wallstreet-menu’, WEBRITI_TEMPLATE_DIR_URI .’/js/menu/menu.js’,array(‘jquery’));
wp_enqueue_script(‘wallstreet-bootstrap’, WEBRITI_TEMPLATE_DIR_URI .’/js/bootstrap.min.js’);
}Is it possible to avoid calling parent theme-menu.css?
Thank you very much…
-
Hi
Remove this the below line of code .
wp_enqueue_style(‘wallstreet-theme-menu’, WEBRITI_TEMPLATE_DIR_URI . ‘/css/theme-menu.css’);
And add the theme-menu.css file css code into
Child theme style.css file.Let me know for further assistance .
Thanks
AkhileshThank you, it works..
It’s just one more thing. I couldn’t see where the green color comes from when we activate page.
When I click for example on ‘About us’ page, I can see background color for ‘About us ‘ is green (hover color is blue).. If I click on ‘Contact us’, when ‘Contact us’ shows then button ‘Contact us’ become green..
I checked all css files, and it doesn’t come from them.
Can you help me about that?tnx
Hi
Kindly share your website URL .
Thanks
AkhileshHi,
Sorry for my late, but I was trying lot of things before writing you because I know that you are busy and I don’t want to bother you…
My site is under construction, so it’s not visible to others..
Yesterday, I deleted everything and start from beggining so I could clearly track the problem.
I tried to remove this parent css with function wp_dequeue_style. Then I tried to import theme-menu.css from child folder with wp_enqueue_style (I gave the same name). The result is that I removed parent css and didn’t include child css.Than I tried to copy all in style.css but website was acting like it couldn’t see styles for nav…
(few days ago it worked)…Because of that I think, there is some other function(s) which calls just ‘theme-menu.css’ from parent directory.
I like your theme very much and I want to keep it, so I copied all files from parent theme in child theme and I updated colors. Now, it works, I’m just wondering it is ok to do this?
Thx
The topic ‘Menu color’ is closed to new replies.
