• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How do I add an Adsense block within post text?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: ad block, ad wrapped text, ads within text, adsense, advertising

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 9 months ago by mariafernandez.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 28, 2013 at 11:46 am #23312
    mariafernandez
    Member

    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.

    February 28, 2013 at 12:49 pm #23321
    Brad Dalton
    Participant

    Install the Genesis Simple Hooks plugin and paste this code into one of the content hooks.

    <?php if(is_single()) { ?>
    <div style="float:right;">
    <script type='text/javascript' src='http://partner.googleadservices.com/.js'>
    </script>
    </div>
    <?php } ?>
    

    Tutorials for StudioPress Themes.

    February 28, 2013 at 5:29 pm #23393
    Brad Dalton
    Participant

    is this the same Question Maria? http://www.studiopress.community/topic/adding-a-banner-below-the-header/


    Tutorials for StudioPress Themes.

    March 1, 2013 at 4:54 am #23468
    mariafernandez
    Member

    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.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble