How Do I Target All Posts Using Hooks?
I do not want to use a plugin for this. I want to have as much control as possible so I’d like to hard code it using hooks. I’m using Headway with my own child theme.
I did extensive research yesterday and still could not find the answer. It seems like either I missed something very crucial, or unbelievably, there has not been a tutorial on the web or in the codex to globally target all posts (I’m going with the former).
My question is this:
I’d like to add social sharing buttons to every post on my website. How would I target every post (blog page, single post page, etc.) using a hook in order to insert these icons? I know how to target and style with css so that won’t be an issue for me.
Here is what I think I know now:
*I would drop this code into functions.php
*It would be using hooks with links to the icons included
Where do I go from here?
P.S. I already posted this in the parent forum without realizing that it was in the wrong place.
- The topic ‘How Do I Target All Posts Using Hooks?’ is closed to new replies.