WordPress: Theme Hooks

Please use caution when editing any code. We cannot help fix issues which have been caused by code which you add to your site.

All of our WordPress themes come with a variety of Action Hooks which you can use. No matter which pipdig theme you’re using, there are certain areas you can add features/functions and code to.

Using Theme Hooks, you can target certain sections of your theme. For example, if you wanted to position a banner ad (such as Google Adsense) after the first image on each archive. If you go to pipdig > Theme Hooks section of your dashboard, you can copy your code into the options and it will be executed in that section.

Usage Example (Pinterest verification tag)

As an example, let’s say we want to add the Pinterest meta tag to verify our site. Pinterest’s instructions say:

They’re asking us to copy the meta tag into the <head> section of our site. We can do that from the pipdig > Theme Hooks page in our WordPress dashboard.

pipdig theme hooks

You would then copy the meta tag into the “Code to add to the <head>” box, as shown below:

Click the save button at the bottom of the page and this code will be added to your site. You can now verify your site with Pinterest.

There are many more Theme Hooks available, which we will be publishing more information on soon. If you have a request for a new hook you’re welcome to ask in the comments below 🙂

Article tags: skimlinks

Was this article helpful?


  1. chloececiliagoescouture

    I already have my Google analytics code in my part and I want to claim my site for Pinterest too, how do I add them both? I know there’s another comment saying that you need to add a couple of line breaks does that mean clicking enter two times or does it mean inputting twice?

    1. Phil (pipdig)

      Hi Chloe! That’s correct, if you place your cursor after the last part of code, you can hit the ‘enter’ key on your keyboard a couple of times to create a few new lines. Then paste the Pinterest code.

  2. larisa

    Hi, Do i remove all the codes in the theme hooks box before I put in the google code? or add it?

    1. Phil (pipdig)

      Hi larisa, if there are other things which have been added to the theme hooks then you should include the extra code on the line below. So it would add to what is already there.

  3. Victoria

    Hi Phil,

    I am trying to verify my Pinterest as well as activate Google Adsense… they both say to paste the code into the section – so I just paste them back to back or separate them somehow?

    1. Phil (pipdig)

      Hi Victoria, you can add the tags to the same box so long as you add some space to separate them. Just a couple of extra line breaks will do.

  4. Stephy

    Hi Phil, were do I locate Themehooks because I cant see it on the dashboard as suggested. I need to verify my site for G-suites

    1. Phil (pipdig)

      Hi Stephy, I’ve just added a screenshot above which shows where to find this option. Let me know if you need any more help with that.

  5. Penny

    Phil, dumb question but I presume that Mailchimp pop ups are supported? I have pasted the code into the theme hook box but nothing is happening on my site. A Mailchimp exit pop up is meant to appear.

    1. Phil (pipdig)

      Yes the Mailchimp popup should work. You may have more success copying the code into a “Custom HTML” widget in one of the Footer sections. Another option would be to use a plugin instead of the HTML version.

  6. Joan

    Hey Phil,

    I have just tried to add an adsense code for google on my account, but I’m not sure if it has already broken my site or not. Please help.


  7. Danielle

    My google analytics and RewardStyle aren’t reading the required codes. Do someone know why this is the case?

    1. Phil (pipdig)

      Hi Danielle, I can see the code in place on your site, so it appears to be working. When you say “aren’t reading the required codes” what exactly do you mean by that?

  8. Janine

    Hi Phil, I would like to add a meta tag from Flex offers to my home page, but I’m a chicken I do not want to break my site…what do you suggest? 🙂

    1. Phil (pipdig)

      Hi Janine, it should be possible to add any meta tags using the first box on the ‘pipdig > Theme Hooks’ page 🙂

  9. Charmaine

    Hi is there a way to add my logo to the navbar? I’ve found this code but don’t want to use it and it messes up my site

  10. Katy

    Hmm ok but I don’t want Google to see this first as it will impact the ranking of my articles.. I need Google to see the post paragraph with my keywords first. I hope that makes sense.

    1. Phil (pipdig)

      That won’t be possible if the disclaimer is at the top. Google will read the first text it sees, just as if it were a human. You might want to move the disclaimer to the footer instead in that case.

  11. Katy

    Hi Phil
    Just checking that if I add a disclosure statement via the awesome theme hook section Google doesn’t see this as part of the post content for SEO purposes.

    1. Phil (pipdig)

      Hi Katy, yes it should do. The content hooks will place the text inside of the post content, so it will be picked up by Google just like any other text.

Leave a comment

The link to your website will be visible to support staff only and will not be shown publicly.
If you do not yet have a website, simply enter "none" in the box.