Site logo

[Resolved] Sidebar widget titles enclosed within div

Home Forums Support [Resolved] Sidebar widget titles enclosed within div

Home Forums Support Sidebar widget titles enclosed within div

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2441669
    Flaminia

    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.

    #2441707
    Leo
    Staff
    Customer Support

    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 🙂

    #2441728
    Flaminia

    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.

    #2441752
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.