III. Using Genesis Simple Hooks
If you are on the Genesis Framework, and are utilizing the Genesis Simple Hooks to place coding in places such as before the content or before the header, you will be changing this code up a bit.
This is what this is what it would look like inside your Genesis Simple Hook:
Using the category or tag ID number from before, and choosing the correct Genesis Simple Hook, you’re going to put in a slightly different PHP code.
Let’s say that you want to HIDE a leaderboard ad from showing up when you have a sponsored post in the genesis_before_header hook. You would use this template:
Make sure you check off “Execute PHP on this hook” so that the code works.
This ends our tutorial today. Let me know if you have any questions in the comments section!