Archived topic
Adding HTML code
1 reply · Started by Robert on June 30, 2022
I have a question that I hope you can help me with. I use the GeneratePress Pro theme, and my website home page is a blog roll of product reviews I write. Is it possible to place the HTML code of product advertisements to display between the reviews in the blog roll? There is a little space between each review, and that is where I'd like to add this code. I thought I could figure this out by adding a "Hook" element based on the Hooks Visual Guide. The hook I tried is the generate_after_main_content hook. I have tried this but to no avail. I can't figure it out. Am I looking in the right direction? Have you ever heard of doing this? If so, how is it done?
Kind regards, Robert
Hi Robert,
There isn’t a hook available in between posts in a Blog Page.
What you can do is use a plugin like Ad Inserter: https://en-ca.wordpress.org/plugins/ad-inserter/
I believe you can add HTML code through this plugin as well.
Hope this clarifies!