Archived topic
How to create elements with shortcodes
1 reply · Started by Daniele on October 20, 2022
Hi, how can I create an element, and get a shortcode to insert it in different places of an article?
I would like it to appear under all the images published in the articles, but the images are in different places, so I don't think it's possible to create a common element.
For this I think I need a shortcode :)
Thanks,
Daniele
Hi Daniele,
You can add a Portable Hook so you can place your Element anywhere. See my response here: https://generatepress.com/forums/topic/hooks-related-question/#post-2170598