Archived topic
Custom Locations for block elements
3 replies · Started by Ted on August 25, 2021
Greetings,
I would like to display block elements in custom locations within my posts. The hook locations all seem to fall just at the beginning of the post or just at the end. I’m hoping to insert them within the post. Is there an easy way to create a custom location. For example, can you create a shortcode for a particular block element that could be inserted at the exact location in the post where you’d like the block element to appear?
My site is: https://thegreatestsong.com/
Many thanks in advance, Ted
Hi there,
Hooks are baked into Templates and Functions, they don't exist within your post content as that is content in your database. There is one way to do it - see this topic:
That is absolute magic! It works. Thank you so much again!!
You're welcome!