Archived topic
Can an element be hooked into a specific footer widget?
4 replies · Started by Bandara on April 19, 2021
Is it possible to use the element system to add a block into a specific footer widget?
Hi there,
That's not possible unfortunately - it would need to be the entire footer.
Sorry about that!
Thanks for the quick response! I was guessing it wasn't possible.
Hi there,
While it's true that it's not possible to do without PHP snippets as Leo mentioned, there's a workaround for this.
The workaround mainly revolves around making a custom hook location by shortcode.
Check my shortcode from this reply:
https://generatepress.com/forums/topic/gutenberg-block-editor-for-category/#post-1696749
You then place the shortcode on a text widget within a specific footer widget area of your preference.
You can then use that portable hook shortcode to hook in your Hook Element or Block element. :)
Oh, thanks! I'll take a look at that. You all are great!