How do I add an Adsense block within post text?

Community Forums Forums General Discussion How do I add an Adsense block within post text?

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  mariafernandez 1 year, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23312

    mariafernandez
    Participant
    Post count: 19

    Does anyone know how to add an Adsense 125 x 125 block below the post title and at the top right of every post, so the block is wrapped by the post text?

    I obviously don’t want to have to do this manually for every post.

    Thanks.

    #23321

    braddalton
    Participant
    Post count: 10245

    Install the Genesis Simple Hooks plugin and paste this code into one of the content hooks.
    [php]
    <?php if(is_single()) { ?>
    <div style="float:right;">
    <script type=’text/javascript’ src=’http://partner.googleadservices.com/.js’>
    </script>
    </div>
    <?php } ?>
    [/php]


    #23393

    braddalton
    Participant
    Post count: 10245
    #23468

    mariafernandez
    Participant
    Post count: 19

    No. The banner below the header is now in place, but placing an Adsense ad within the post text is proving a big challange. So much so, that I’m better of not wasting my time with it and doing it by hand, post by post.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.