How to disable the Woocommerce CSS from the zero theme I created?

Asked

Viewed 83 times

1

Hello, I’m encountering problems when using Wordpress 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 website: https://docs.woocommerce.com/document/disable-the-default-stylesheet/ But I didn’t know how to use it, I added some code snippet of that link in my 'functions.php' and nothing. Deletes Woocommerce.css but unsuccessfully and even deactivated and deletes the plugin but the site remained in the style of Woocommerce. How can I use the toilet without affecting the look of my site ? how can I make the compatibility ?

2 answers

0


inside the head tag (The last line), paste this by editing the css file name

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

HTML looks like this:

<head>
//linhas anteriores

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

</head>

IF IT DOESN’T, TAKE IT FROM HEAD AND PUT IT ON THE LAST LINE OF THE TAG BODY STAY LIKE THIS:

<body>
//linhas anteriores

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

</body>

SO HE WILL FORCE THE READING OF HIS CSS. UPON COMPLETING THE READING OF THE PAGE.

  • IF THE ANSWER LE WAS USEFUL. MARK AS ACCEPTED.

  • IT WORKED AI FRIEND?

  • Oops, thanks! Sorry for the delay. I did not test, I ended up finding the problem ! The problem was the following, when installing Woocommerce he activated the WC theme alone, thus, disabling mine, the only thing I did was activate again and returned to normal ! kk

  • Post your solution for people see. It may be useful for someone else.

0

For those who have been through the same problem as me, a possible solution is you check your theme ! When installing Woocommerce, it disabled my theme alone, causing the WC to be activated, so just go in 'appearance > themes ' and activate your theme again ! Thanks

Browser other questions tagged

You are not signed in. Login or sign up in order to post.