Archived topic
Sidebar widget titles enclosed within div
3 replies · Started by Flaminia on November 29, 2022
Hi,
I use GP with Dispatch. I would like to make it so that the sidebar widget titles are enclosed between Divs. Currently the HTML code for the widgets looks like this:
<aside ...>
<h2>...</h2>
...
</aside>
I would like to make it look like this:
<aside ...>
<div class="some-class">
<h2>...</h2>
</div>
...
</aside>
It should be possible using functions.php, but I can't find how to do it.
Can you help me with this?
Thank you.
Hi there,
That's not possible unfortunately.
What would be the usage? Are you trying to target the title with some CSS?
If so we can do it without the extra <div>.
If you need help with that, can you link me 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 :)
Thank you for the quick reply. I will try to achieve the same thing in a different way. No problem with the CSS :)
Thank you again.
No problem :)