Our Hooks add-on allows us to 「hook」 our own custom code into various areas of the theme without changing core files.
By default, the content added in hooks will show up on all pages and posts.
We can also use Conditional Tags to show hooks on specific pages.
We will need to Execute PHP for the conditional tags to work.
Here are some common examples:
Blog/Posts Page
This Content will ONLY show on the blog/posts page
This content is EXCLUDED from the blog/posts page
More info on The Main Page.
Static Front Page
This Content will ONLY show on the static front page
This content is EXCLUDED from the static front page
More info on The Front Page.
Latest Posts as Home page
This Content will ONLY show on the latest post page
This content is EXCLUDED from the latest post page
More info on The Blog Page.
Single Posts
This Content will ONLY show in single posts
This content is EXCLUDED from single posts
See more info on A Single Post Page.
Static Pages
This Content will ONLY show in static pages
This content is EXCLUDED from static pages
See more info on A PAGE Page.