• 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_after_post_title Hook

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 › genesis_after_post_title Hook

This topic is: not resolved
  • This topic has 6 replies, 3 voices, and was last updated 9 years, 8 months ago by CornerstoneKat.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • April 29, 2013 at 12:36 am #38353
    Renu Bakshi
    Member

    I want to use this hook to place link ad unit (size 428*15) just after posts' titles appearing on single posts pages only. Do not want the ads to appear on other pages like home page, etc.

    Please advice:

    (i) How to do it. Do I just need to add the ad unit code into the big rectangular box appearing after : "This hook executes immediately after each post/page title within the loop."

    (ii) Do I need to check any of the two small boxes appearing below the big rectangular box. That is small boxes appearing adjacent to : (i) Execute Shortcodes on this hook? and (ii) Execute PHP on this hook?

    Please advise.

    Thanks & Regards...........

     

    April 29, 2013 at 2:53 am #38371
    Brad Dalton
    Participant

    1. Yes

    2. Execute PHP on this hook?


    Tutorials for StudioPress Themes & WooCommerce.

    January 21, 2014 at 3:07 pm #86319
    CornerstoneKat
    Participant

    I am looking for the answer to this as well. Does anyone know how to add the hook so that the ad appears only on full post pages and not archive or home pages? My website is CornerstoneConfessions.com and I am looking to add a disclaimer between the title and content only on complete post pages. Thanks.

    January 23, 2014 at 7:24 pm #86722
    Brad Dalton
    Participant

    use

    is_single()

    or

    is_singular('post')

    after the function

    Conditional tags http://codex.wordpress.org/Conditional_Tags


    Tutorials for StudioPress Themes & WooCommerce.

    January 23, 2014 at 10:36 pm #86756
    CornerstoneKat
    Participant

    Thought it would work but it doesn't stick. Tried several forms. Here is my current code...no results. Am I missing something?

    <blockquote><p style="text-align: left;"><span style="font-size: 12px;">Disclaimer: This post may contain affiliate links.  For more information on Cornerstone Confessions affiliates, please see my full <a href="http://cornerstoneconfessions.com/disclosure-policy">disclosure policy</a>.</span></p>
    </blockquote>
    <?php if (is_singular('post') )?>

    Thanks for the help.

    January 24, 2014 at 3:04 am #86766
    Brad Dalton
    Participant

    Please start a new topic. Your question is not related to the title of this topic. Thanks.


    Tutorials for StudioPress Themes & WooCommerce.

    January 24, 2014 at 4:49 pm #86891
    CornerstoneKat
    Participant

    ?! What do you mean this is not related to this topic? I want my disclaimer to appear on full post pages only just like Renu wanted her ad on full post pages only too. It's the same hook. I am just trying to figure out the code to make it work.

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

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