This topic has 6 replies, 2 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler
I had a css rule to assign custom colors to the buttons in the grid of the last posts on the homepage. After the last update of the template to version 4.0, it seems that it does not work anymore.
The rule is as follows:
/* button grid post in homepage*/
.vc_btn3.vc_btn3-color-juicy-pink, .vc_btn3.vc_btn3-color-juicy-pink.vc_btn3-style-flat {
background-color: #222222;
}
.vc_btn3.vc_btn3-color-juicy-pink.vc_btn3-style-flat:focus, .vc_btn3.vc_btn3-color-juicy-pink.vc_btn3-style-flat:hover, .vc_btn3.vc_btn3-color-juicy-pink:focus, .vc_btn3.vc_btn3-color-juicy-pink:hover {
background-color: #b98b1b;
}
Hello,
Please create an empty dynamic.css file in woopress-child theme folder and set permissions 777 for the file + add wp_enqueue_style( 'dynamic-css', get_stylesheet_directory_uri() . '/dynamic.css' );
in woopress-child/functions.php file. Then go to Theme Options and re-save them.
Let me know if the problem will be fixed.
Regards
it worked, but what did I do? and why did I have to do it?
Thanks for your help.
Greetings
You’re welcome! From the 4.0 update, all the custom styles come not like inline CSS but as styles from separate file – dynamic.css (to speed up the site loading). If you created child theme before 4.0 update you need to do it.
Regards
thank you very much.
regards.
You’re welcome!
Have a nice day.
Regards
You must be logged in to reply to this topic.Log in/Sign up