Archived topic
I want to add a script or shortcode with 'generate_before_entry_content' hook.
3 replies · Started by fastview on June 13, 2022
Dear GeneratePress.
I am trying to find the hook to insert something after featured-image in the single-post, but I cannot find it in GeneratePress Document.
In detail generate_before_entry_content is the place where I want to put in, but this hook does not exist.
I want to insert shortcode or script after featured-image.
this is sample page : https://www.smartincome.co.kr/63562/
please give me some good guide for it.
Hello there,
Here’s a Visual guide of some of the hooks available in GP: https://docs.generatepress.com/article/hooks-visual-guide/
As shown, you may try using generate_after_entry_header to place something below the Featured image.
If it appears above, may you try setting the priority value to 11 or something higher?
Kindly let us know how it goes.
Dear Fernando.
Everything works fine!
Thank you.
Sincerely
You’re welcome! Glad it’s working now!