Tagged: conditional css
Hi,
In this page (a copy) I got a non wanted behaviour:
http://www.srgl.cloud/morso/shop/
Click on “Go angry” checkbox on the left (to filter by a tag), and you got all the tag page in there, header included (and I don’t want the header to be seen!).
Now the plugin author pointed me to some theme related stuff
I’ve been suggested to use a contition in the css, such as:
if(is_shop()){
<style>
.term-description{
display: none;
}
<style>
}
which makes logical sense to me, but if I put it in the quick css it does not do anything.
However, if i just put
.term-description{
display: none;
in the quick css it let the header stop to be seen in the filtering (so.. something is right ).
Unfortunately it is not shown in the category and tag page as well (and I can tell I would have expected that!)
Can you please point me in the right direction about the code I shall use and the place in which I have to put it in?
Thank you so much!
Hey,
That code should go to Functions.php file in Appearance > Editor. To read more about WooCommerce’s conditional tags, please see – https://docs.woocommerce.com/document/conditional-tags/
Best regards,
Yigit