[Resolved] I can'tfind header.php file in blog and theme

Home Forums Support [Resolved] I can'tfind header.php file in blog and theme

Home Forums Support I can'tfind header.php file in blog and theme

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #625254
    uche

    Hello
    I joined an affiliate program and was instructed to copy and paste a code on the front page of my website.I can’t seem to find the header.php file (which I suppose is the front page of my website) in my blog or theme. Please advise accordingly
    Thanks.

    #625324
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I wouldn’t paste anything into the theme files.

    Instead, use GP Hooks: https://docs.generatepress.com/article/hooks-overview/

    Where did they tell you to paste it?

    #625433
    uche

    Hello Tom,
    I am required to copy and paste the code in the front page of my website or the header.php file so that the affiliate program can verify my website and I can start putting up ads.
    Please direct me on exactly where the front page of my website is? I tried looking for header.php on my web server(I use Bluehost) but couldn’t find it.

    #625507
    David
    Staff
    Customer Support

    Hi there, can you share a link to the instructions you were provided in regards to adding the code?

    #625532
    uche

    The affiliate program is PropellerAds.com
    Here’s the link https://publishers.propellerads.com/#/pub/sites/site/766415
    I need to put in the link in my website for verification.

    #625541
    David
    Staff
    Customer Support

    Hi there,

    so the code needs to go into the <head>, so as Tom suggested add the code to GP Hooks in the WP_Head hook.

    https://docs.generatepress.com/article/hooks-overview/

    #628170
    uche

    Pasted the code in gp-hooks and my website is verified.
    Thanks alot guys (David and Tom).

    #628211
    David
    Staff
    Customer Support

    Awesome. Glad we could be of help!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.