Does anybody know how I can hide the descriptions from view for the categories and tags for my website? I have searched for a while but can’t find any solutions. I would like it so that when they are clicked it just shows the categories or posts available, no description visible. Can someone show me how to do this please?
https://lawlessons.co.uk/ (when hovering the mouse over the category it brings up a description).
https://lawlessons.co.uk/tag/contract-law-agreement-offer-and-acceptance (when opening a category it shows a description).
https://lawlessons.co.uk/category/contract-law/agreement-offer-and-acceptance (when opening a tag it shows a description).
(Author wordpress theme).
Happy new year!
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
If there is no description disabled in the theme settings, then you will have to edit the template files. This description is displayed in the title tag of the link, and you need to look for the category_description () function in the files. If you find it, you can just comment it out.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0