Site logo

Archived topic

Sidebar widget titles enclosed within div

3 replies · Started by Flaminia on November 29, 2022

Viewing posts 1–4 of 4

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.

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 :)

This archived topic is closed to new replies.