Need help with adding Adsense code into Thesis theme blog posts.

8 replies
  • WEB DESIGN
  • |
I purchased the thesis theme about a week ago and am learning it slowly. Very slowly actually, there's a lot to learn. I have two things I'm trying to do with it but keep stumbling on how to do them. I hope that a fellow warrior can lead me in the right direction or explain how to do them.

The first thing I want to do is add an Adsense block into the Thesis theme blog posts. I don't know if this is a widget that can make that happen or if I have to mess with the coding to get it done.

The second thing I want to do is add a single line Adsense block right below my main header for the website. Again, I'm having trouble figuring out how to get that done as well.

If these are "widgets" how do they get plugged in so they work? If its messing with the code, of which I know nothing about, I will need detailed instructions.

A perfect example of a website I would like to model mine after is: school-grants Dot org

Thank you!
#adding #adsense #blog #code #posts #theme #thesis
  • Profile picture of the author Patrick
    Use this plugin...you can insert adsense ads automatically ANYWHERE in the posts without even editing the code.

    WordPress › Quick Adsense « WordPress Plugins

    To add it below the header, use this plugin WordPress › Thesis OpenHook « WordPress Plugins and add your adsense code in the after header section..
    {{ DiscussionBoard.errors[3256272].message }}
    • Profile picture of the author StopSweating
      Thanks so much for the tip on the WordPress plugin to show Google AdSense in posts. I tried to using the thesis open hooks and change my customfunctions file but nothing would work for me. A plugin was not my first choice, but so far so good, and within 5 minutes I achieved what I have been messing with for 2 weeks now!
      {{ DiscussionBoard.errors[4391368].message }}
  • Profile picture of the author ProfitwithAdam
    I added both plug in and got the quick Adsense one to work. However, the Open hook one i couldn't get to work for some reason. I pasted the Adsense code into the "after header" hook, but nothing showed up. Am I doing something wrong?
    Signature

    {{ DiscussionBoard.errors[3258283].message }}
    • Profile picture of the author Patrick
      Originally Posted by ProfitwithAdam View Post

      I added both plug in and got the quick Adsense one to work. However, the Open hook one i couldn't get to work for some reason. I pasted the Adsense code into the "after header" hook, but nothing showed up. Am I doing something wrong?
      What is the URL of your website.
      {{ DiscussionBoard.errors[3258289].message }}
  • Profile picture of the author ProfitwithAdam
    this is my "dummy site", basically its the one I want to fine tune into so i can use it as my "test" website for learning thesis. Once I can get it to look the way i want, then I can start creating the other websites I have ready to create.

    the website is: omahamobileoffers dot com

    As you can see, I'm really trying to copy the layout of the school-grants dot org website.

    Also, do you know of a plugin that can give me the small "Bookmark & Share" buttons on the school-grants website? I haven't looked for it yet, but i figured you know this stuff and should just ask.

    Thank you,
    Signature

    {{ DiscussionBoard.errors[3258380].message }}
    • Profile picture of the author Patrick
      Originally Posted by ProfitwithAdam View Post

      Also, do you know of a plugin that can give me the small "Bookmark & Share" buttons on the school-grants website? I haven't looked for it yet, but i figured you know this stuff and should just ask.

      Thank you,
      Sexy Bookmarks is one of them which can do what you want. There are many similar ones out there.
      {{ DiscussionBoard.errors[3258431].message }}
  • Profile picture of the author Patrick
    If the Open Hook didnt work, try this...

    Go to Custom File Editor under the Thesis menu in the Dashboard.

    From the dropdown, select custom_functions.php file..

    Insert this in the end.

    function header_ad() { ?>
    <div id="header_ad">
    [INSERT Google Adsense CODE HERE]
    </div>
    <?php }
    add_action('thesis_hook_header', 'header_ad');

    Save and check if this works.
    {{ DiscussionBoard.errors[3258446].message }}
  • Profile picture of the author ProfitwithAdam
    cool!, I got it to work... I must have tried to put it in a different hook spot, because when I tried it yesterday, there where two check boxes under the hook I tried to use. Today, under the correct hook, there is only one. My mistake. Thank you so much for your help!!
    Signature

    {{ DiscussionBoard.errors[3258460].message }}

Trending Topics