• 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

Adsense before comment on posts, but not on home page

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 › Design Tips and Tricks › Adsense before comment on posts, but not on home page

This topic is: not resolved

Tagged: adsense, lifestyle Pro, Simple Hooks

  • This topic has 3 replies, 3 voices, and was last updated 11 years, 10 months ago by AnitaC.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 8, 2014 at 9:40 am #89344
    catladykate
    Member

    Hi. I have adsense set up via simple hooks to go after the post and before the comment using genesis_before_comment_form Hook. That works great for the individual post pages, but it's too far down in the home page.

    What I want to do is have it between post and comment on blog page but put the adsense code in a text widget about half way up the home page. I'm using Lifestyle Pro, http://www.DepressionElegantGlass.com.

    Thanks for all the help here. I'm no coder but the advice in the forums has been good enough that I'm able to do a lot of work on my blogs.

    http://www.depressionelegantglass.com/
    April 13, 2014 at 10:41 am #100027
    Susan
    Moderator

    As you posted this a while back, I hope you were able to get your issue resolved. If not, please check back in here, and I will escalate for you.

    If it is resolved, please mark the thread “resolved”, and I will close it.

    Thanks!

    April 13, 2014 at 11:18 am #100057
    catladykate
    Member

    Thank you, Susan. No, I don't have a solution for this.

    April 20, 2014 at 10:49 am #101451
    AnitaC
    Keymaster

    Instead of using the hooks, you'd benefit more by adding an after-post widget area. Please your adsense code in there. Then use the text box on the home page. Brad's instructions here show you various ways to do this - one of which is registering the sidebar for the after-post widget.


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2026 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