How do I disable the WooCommerce CSS for the zero theme I created?

1

Hello, I'm encountering problems using WordPress's WooCommerce. I created a theme from scratch, but when installing WooCommerce all the visual part I built was changed by the WooCommerce plugin. I would like to resolve this, I checked the following site: link but I did not know how to use, I added some code snippet of that link in my 'functions.php' and nothing. Excludes WooCommerce.css but to no avail and even deactivated and deletes the plugin but the site has remained WooCommerce style. How can I use the toilet without affecting the look of my website? how can i do the compatibility?

    
asked by anonymous 12.11.2018 / 12:01

2 answers

0

Inside the head tag, paste this by editing the css file name

<?php
$css=mt_rand();
echo '
   <link rel="stylesheet" href="pasta/Seutema.css?'.$js.'"> 
';
?>

NO HTML looks like this:

<head>
//linhas anteriores

<?php
$css=mt_rand();
echo '
   <link rel="stylesheet" href="pasta/Seutema.css?'.$js.'"> 
';
?>

</head>

IF NOT SOLVING, REMOVE FROM THE HEAD AND PLACE THE LAST LINE OF THE TAG BODY STAY SO:

<body>
//linhas anteriores

<?php
$css=mt_rand();
echo '
   <link rel="stylesheet" href="pasta/Seutema.css?'.$js.'"> 
';
?>

</body>

SO IT WILL FORCE THE READING OF YOUR CSS. BY COMPLETING THE READING OF THE PAGE.

    
12.11.2018 / 12:35
0

For those who went through the same problem as me, one possible solution is to check your theme! When I installed woocommerce, it disabled my theme by itself, causing the WC to be activated, so just go in 'appearance > themes' and activate your theme again! Thanks.

    
14.11.2018 / 14:33