CSS changes to stylesheet not activating
-
I’m still a newbie, and my last time coding was some years ago. I now created a child theme for theme “Klopp”. My child theme then came with these files: functions.php, style.css and rtl.css.
I have allready made the content of the site, and now I want to make some changes to the looks of it. But when editing style.css in child theme my coding is not activated. I’m only putting in codes I want to change, not all of parents stylesheet, since functions.php came with this:
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); }
And in my style.css I am not using @import, because I read I dont need to.
When this did not work, I reselected Klopp as my theme, just to try edit stylesheet in this theme to see if changes are accepted. Still not working. I might be coding wrong, but I have been googling hard.. I am copying those files I want to change, put them in style.css in child, and change to what I want.
For now, there are just a few changes I want to make:
– center the nav menu, and have it follow as u scroll down
– change speedtime in the Nivo slider
– change title/header(remove shadowing on font)My site https://www.yatrayoga.no
Is everything uploaded to child? Is it even ready to start CSS coding?
Would love it if anyone can help me solve this. ??
- The topic ‘CSS changes to stylesheet not activating’ is closed to new replies.