• 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

News Pro – Add code before & after body content

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 › News Pro – Add code before & after body content

This topic is: not resolved
  • This topic has 6 replies, 2 voices, and was last updated 11 years, 10 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 11, 2014 at 8:30 am #113901
    zomidaily
    Member

    Hi...

    I would like to add code before & after the body content, but I prefer not to use plugin as too many plugin conflict each other.

    How can I add code manually to this screenshot: http://prntscr.com/41lx14 position?

    Regards,
    Joseph

    http://News Pro
    July 11, 2014 at 11:46 am #113915
    Brad Dalton
    Participant

    Link to your site please.

    What type of code do you want to execute?


    Tutorials for StudioPress Themes.

    July 11, 2014 at 11:52 am #113917
    Brad Dalton
    Participant

    What you would do is use these 2 hooks

    genesis_entry_content

    genesis_entry_footer

    http://genesistutorials.com/visual-hook-guide/


    Tutorials for StudioPress Themes.

    July 11, 2014 at 8:26 pm #113988
    zomidaily
    Member
    This reply has been marked as private.
    July 12, 2014 at 2:51 am #113998
    Brad Dalton
    Participant

    I don't get PM's.


    Tutorials for StudioPress Themes.

    July 12, 2014 at 3:00 am #114000
    zomidaily
    Member

    Hi @braddalton

    I am trying to place Google Adsense code, and my test site is here http://ciimnuai.com/test

    But if I just simply enter text on those hook, it appear at the bottom of the post as http://prntscr.com/41tdt2 or http://ciimnuai.com/test/threaded-comments/

    Any suggestion how to place Adsense before and after every post?

    Regards,
    Joseph

    July 12, 2014 at 3:17 am #114003
    Brad Dalton
    Participant

    You can use a custom function with hooks or the simple hooks plugin.

    I would create 2 new widgets for this with the is_single() conditional tag.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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

© 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