Custom css does not work - by Rodolfo - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler

  • Avatar: rodolforizzo76
    Rodolfo
    Participant
    February 26, 2018 at 19:30

    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;
    }

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 27, 2018 at 09:34

    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

    Avatar: rodolforizzo76
    Rodolfo
    Participant
    February 27, 2018 at 12:33

    it worked, but what did I do? and why did I have to do it?
    Thanks for your help.

    Greetings

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 27, 2018 at 13:01

    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

    Avatar: rodolforizzo76
    Rodolfo
    Participant
    February 27, 2018 at 16:11

    thank you very much.
    regards.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 27, 2018 at 16:12

    You’re welcome!
    Have a nice day.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.