• 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

'before_post_content' hook for Genesis 2.0?

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 › 'before_post_content' hook for Genesis 2.0?

This topic is: not resolved

Tagged: Simple Hooks

  • This topic has 4 replies, 3 voices, and was last updated 12 years, 10 months ago by MarkAsacker.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 25, 2013 at 4:54 pm #58788
    Kurt
    Member

    I've tried using genesis_entry_header in the Simple Hooks plugin.... but it places my Ad above the Date/Posted-by meta information. (after the post title)

    Is there a way to put an ad within the content? After Date/Posted-By and before the actual content.

    August 25, 2013 at 7:05 pm #58811
    Brad Dalton
    Participant

    Add a third parameter for positioning priority.

    Please paste all the code for the add in Pastebin or Github Gists and leave a link here.

    I will put the code into a custom function for you with.

    Link to your site as well thanks.


    Tutorials for StudioPress Themes.

    August 25, 2013 at 11:45 pm #58832
    Kurt
    Member

    Thanks for the reply.

    The question is more about how to use the right hook. (if it exists now with Genesis 2.0)

    Just using a standard image html tag to insert an image.

    I want the image to appear after(underneath) the "Date" and "Posted By" meta information after the post title. (before the content)

    I put the image code in genesis_entry_header hook with the Simple Hooks plugin active.

    The problem/issue is easy to reproduce.

    August 25, 2013 at 11:47 pm #58834
    Kurt
    Member

    The edit/code is all messed up.... basically, I'm just trying to insert an image.

    September 17, 2013 at 3:46 pm #63050
    MarkAsacker
    Member

    Hey Kurt,

    I see it's been a few weeks since you've heard anything on your topic. Not sure if you've resolved the issue but in order to achieve what you're looking for you'd want to enter you image code into the...

    "genesis_post_content" Hook in simple hooks.

    This will output the image under the Date, Time and Author but before your post content.

    If you haven't already, you may want to install the Genesis visual hook guide plugin located here...

    Genesis Visual Hook Guide

    It will help you immensely when trying to figure out which hook to use.

    Once you've installed, view a post in your browser. Hover over the "G Hook Guide" link in the admin bar and click "Action Hooks" to see all the Hooks on the page.

    Hope this helps.

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