Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #837994

    Hi,

    I installed the enfold travel demo, prior I activated woocommerce and in the process of customizing it all of the sudden the woocommerce css overwrites the theme css. Now I found a soltuion post by woocommerce: https://docs.woocommerce.com/document/disable-the-default-stylesheet/

    I tried to insert the snippet: add_filter( ‘woocommerce_enqueue_styles’, ‘__return_empty_array’ );
    into the function.php, but it didn’t work .

    I am lost and I spend hours trying to fix this. Can you please tell me where exactely I need to insert the snippet, or how can I disable the woocommerce css?

    Thx
    Julian

    #838095

    Hey jawer,
    Please try adding this code to the end of your functions.php file in Appearance > Editor:

    add_filter( 'woocommerce_enqueue_styles', '__return_false' );

    Please clear your cache :)

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.