Archived topic
Hook After Content With Ads and Social Sharing
5 replies · Started by Christopher on October 20, 2021
I am trying to hook an email opt-in box right after my content, but before my social share and my ads. I can't figure out how to get it to work. I am using the after_content hook element type, with the block element.
Hi Christopher,
Can you try changing the priority value of the Block element containing the opt-in form to 1?
Let us know how it goes.
No that didn't work unfortunately.
Hi there,
the social share plugin is filtering the post content to add sharing icons. So you can't Hook an element in before them.
Check with the Social Share plugin author if they provide a Shortcode for displaying the adverts. If they do then you would use a Hook or Block element to Hook them in after_content - then the priority order Elvin provided should work.
Thanks that did the trick!!
Glad to hear that!