Archived topic
Help with hooks beneath header
7 replies · Started by Jennifer on May 1, 2021
Hello!
We would like to use generate press hooks to add a set of 4 images that are 300pixels by 300 pixels.
We'd like the image boxes to appear below the header on our main page only. However, I've been struggling to get the hook to appear across the whole width of the page. I also am unsure how I would get it to appear on the main page only and not each blog post.
Any ideas?
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
Sure thing!
The after_header hook should work in this case:
https://docs.generatepress.com/article/hooks-visual-guide/
Then set the display rule to front page only.
How do I setup the display rule exactly? I'm good with inserting the hook but the front page rule is over my head.
Under Display Rules, select Front Page and that's it:
https://www.screencast.com/t/lkOTGuyye
Hi Leo, I think I might be missing a plugin. I do not have the elements when I click on appearance.
Any ideas?
Are you using the latest GPP version 2.0.1?
Is the element module activated?
https://docs.generatepress.com/article/installing-gp-premium/#activate-your-modules