hide description
-
Hi Armin
I've added a description to my thumbnails on the homepage which indicates the category from my menu bar however i'd like to hide the said description once you're clicked on the category page itself.
is that possible?
Cheers
Toby -
Hi Toby,
without sewing the website it is a bit difficult to come up with a solution.
Can you upload it for us?
Many thanks!
Marius
-
Yep - www.tobyneilan.com
-
Hi Toby,
I try to explain:
Each page has a slug. For example when you click on a category the page will get the class
.type-category
:The description also has a class called
.descr
:So if you add to your Custom CSS the following you should have no descriptions in the category page:
.type-category .descr { display: none; }
I hope I could help!
Best!
Marius
-
Thanks Marius - I added the code and it did hide the description, but it also hid it on the home page too
the one page where I want to keep the description. -
Solved it - thanks for the help.
Toby
5/6
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it