• 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

GeNeSiS Simple Hooks : after_post_content Hook issue

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 › GeNeSiS Simple Hooks : after_post_content Hook issue

This topic is: not resolved

Tagged: Genesis Simple Hooks

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 4 months ago by Genesis Developer.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 15, 2014 at 1:36 pm #95058
    cartess3
    Member

    I hope all is well with everyone. I have what I hope is an easy-to-solve dilemma.

    I downloaded the Genesis Simple Hooks plugin and I dropped html code to show a clickable banner graphic in the section titled:

    genesis_after_post_content Hook

    This hook executes immediately after the genesis_post_content hook for each post/page within the loop. I've made a screenshot so you can see exactly what I'm talking about:

    http://www.tshirtriches.com/hook.png

    Anyhow, I don't want that banner to show up on certain pages and/or posts...

    For example, I don't want it showing up at the bottom of this page at all:
    http://www.tshirtriches.com/sell-t-shirts-worldwide/

    Is there a way to put code on the pages I want this to be 'invisible' or not show up? I do want it on MOST pages/posts, just not all pages...

    http:// http://www.tshirtriches.com/sell-t-shirts-worldwide/
    March 16, 2014 at 8:48 am #95134
    Genesis Developer
    Member

    Use the conditional tags. See the codex. You'll check is_page & is_post function.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

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