Archived topic
How to add a label to the category widget?
7 replies · Started by Jeff on May 8, 2022
I added the category widget to the sidebar and I'd like some sort of label that says "Categories" to that widget so people know the links are categories. How do I do that? Do I have to add or modify the css? I can see a label option for the search widget but not the category widget.
thanks!
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
on the right, directly under the search box is the widget I'm referring to. I'm trying to figure out how to let people know that those links are the categories and there doesn't seem to be an option to display the word "category"
Hi Jeff,
You can add a headingwidget on top of the categories widget, then group them together:
https://www.screencast.com/t/8WFcmEeYH
Hi Ying, thanks. I just did that but there's a huge gap/space between the heading and the first category. Is there a cleaner way to add it? Or a way to get rid of the gap?
And also, the heading doesn't seem to show up on my mobile browser (chrome/android), should it?
Hi there,
when adding blocks to a widget area, each block is added as a separate widget. So you get the extra space etc.
To get around that use a Group Block - see here:
https://docs.generatepress.com/article/grouping-widgets/
The mobile issue, try clearing your phones browser caches
That worked beautifully. I don't know why anyone would ever buy any other theme. The support here alone is worth a thousand times more than the price of any theme.
Thanks David.
Glad to be of help. And thank you for the kind words!!