Support » Plugin: WooCommerce » Get rid of CSS directive

  • Resolved benfellah1992

    (@benfellah1992)


    Hello

    i want to include some css directive codes that Woocommerce inject in the site.

    example :

    <style id='woocommerce-inline-inline-css' type='text/css'>
    .woocommerce form .form-row .required { visibility: visible; }
    </style>

    Should i add the code to the default style.css theme or custom.css and where i can delete the original code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wpnomad

    (@wpnomad)

    Hi @benfellah1992 ,

    Should i add the code to the default style.css theme or custom.css and where i can delete the original code?

    You shouldn’t delete the original code, as the modification of the original code will be overwritten when the plugin updates. You can add your CSS under Appearance > Customize > Additional CSS. The CSS code you add there will overwrite the default CSS.

    • This reply was modified 11 months ago by wpnomad.
    Hari Shanker R

    (@harishanker)

    Automattic Happiness Engineer

    Hi @benfellah1992

    I hope that the suggestions provided by @wpnomad in their previous reply guided you in the right direction. As they had mentioned, it’s best to add CSS code to: Appearance > Customize > Additional CSS so that the changes won’t get overwritten with plugin/theme updates.

    Since we haven’t heard from you in a while, I’m going to mark this topic as Resolved. Let us know if you keep running into troubles. You can either reply here to follow-up with the same problem, or create a new thread to report your troubles to us.

    All the best!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get rid of CSS directive’ is closed to new replies.