Site logo

[Resolved] Can’t change footer widget heading with new group widget block

Home Forums Support [Resolved] Can’t change footer widget heading with new group widget block

Home Forums Support Can’t change footer widget heading with new group widget block

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2098816
    Fabio

    Hi all, i’m not sure if i’m doing something wrong or not.

    i wanted to use generate_start_widget_title filter to change h2 to h4 widget title on footer.
    but:

    – if i use legacy widget and nav menu with a title, it works, but i want to create a block with an h4 title and then 3 rows with icon+text

    – if i use the new “group of widget” i can set a title, then add any blocks i want, but even if i the filter set as usual i get “<h2 class=”widget-title”>prova</h2>”

    now, the quick solution is to use a “group block” than add an Heading block for title, and then other Heading blocks for the rows i need

    this said i would to know if it is possibile instead to usa the new “group of widget” and then all the Headings i need, because it uses less code and i think it can be quickier to use

    i don’t know if it’s an error or worpdress block, or mine, or what else

    in few words, is there any filter to change H2 to H4 for the widget-title of the new “group of widget” block?

    thank you!

    #2098945
    David
    Staff
    Customer Support

    Hi there,

    i believe thats a core issue – see here where a user raised the point that the HTML is not respecting the register_sidebar function which means it won’t respect the filters that GP uses either:

    https://github.com/WordPress/gutenberg/issues/38197

    #2099175
    Fabio

    Thank God we have you and Generate Blocks 🙂

    #2099826
    David
    Staff
    Customer Support

    Glad we can be of help!

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