• 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

Hook in Between Post?

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 › Hook in Between Post?

This topic is: not resolved

Tagged: genesis, html5

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 7 months ago by AnoopSudhakaran.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 23, 2013 at 2:05 am #75136
    AnoopSudhakaran
    Member

    Hello,

    Is there a way to insert a function inside the single post between paragraphs? I looked for a way but couldn't find any.

    Also in the new HTML5 hooks, How do you specify 'genesis_header_right'? And how does is prioritize the hooks?

    Thanks.

    November 23, 2013 at 5:49 am #75157
    Brad Dalton
    Participant

    Try these resources:

    Genesis Visual Hook Guide

    http://my.studiopress.com/docs/hook-reference/

    http://wpsmith.net/2011/genesis/how-to-add-google-adsense-after-the-first-or-second-paragraph-of-a-post-in-genesis/

    You can also use the 3rd parameter for positioning priority

    $priority
    (int) (optional) Used to specify the order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
    Default: 10

    Source http://codex.wordpress.org/Function_Reference/add_action


    Tutorials for StudioPress Themes.

    November 23, 2013 at 6:08 am #75161
    AnoopSudhakaran
    Member

    Thanks!

    I had already browsed through those pages, I have also used the Adsense code in the past but was checking if there was an official Genesis Hook for it. Anyways I will try to find some alternative or end up using your guide on Adsense. 🙂

    Again in HTML5, How do you specify ‘genesis_header_right’?

    November 23, 2013 at 3:03 pm #75287
    Brad Dalton
    Participant

    There's no difference as the only changes where for loop hooks. Does that answer your question or did you want to hook into the position?


    Tutorials for StudioPress Themes.

    November 24, 2013 at 6:26 am #75344
    AnoopSudhakaran
    Member

    I figured it out. Thanks 🙂

    Your blog is great!

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

© 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