• 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

angewi

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 28, 2014 at 9:26 am in reply to: Executive Pro – Grey Space Issue #87510
    angewi
    Member

    Thanks;

    dev.assetguardian.com

    April 14, 2013 at 2:21 am in reply to: Display featured image above title using simplehooks #35347
    angewi
    Member

    Got it completed and it's working nicely.

    1. Made two new page templates, one for each division.
    2. Made two functions,  just amended the one above to look at the page template and if for division A returns division A logo, the second function looks and if for division B returns B logo
    3. Used the stylesheet to float it right so it appears very nicely on the page.

    I should use an if, else if, else coding to put my two functions into one, but that's for another day 🙂

    April 10, 2013 at 9:22 am in reply to: Display featured image above title using simplehooks #34539
    angewi
    Member

    An  update, sorry it took so long!

    Thanks to Braddalton for getting me a big step ahead. I used the code suggested with a slight change to only show the image on specific pages.

    function wpsites_image_before_title() {
    if(is_page( array( 8, 10, 18 ) ))
        echo '
    <div class="header-banner"><img alt="" src="image url alt=" /></div>
    ';
    }
    add_action('genesis_before_post_title', 'wpsites_image_before_title');

    My next steps is to right align the image and get this to include an "or" so it shows a different image on the second division's pages.

    March 21, 2013 at 6:40 am in reply to: Display featured image above title using simplehooks #29913
    angewi
    Member

    Hi Braddalton, yes I'm happy when adding images in posts. For these pages we'd wanted to get the logo for each division shown above the page content and page title, but not be the header as the company logo will be shown then.

    The hook location I was focusing on was “genesis_before_post_title”.

    March 21, 2013 at 6:17 am in reply to: Display featured image above title using simplehooks #29906
    angewi
    Member

    Ah brilliant, thank you Braddalton.

     

    The site header banner will stay the same, so I am looking to use the “genesis_before_post_title” hook to have the image displayed.

    An example can be seen on this page - http://www.webexit.co.uk/angepp/division-a/. I need to right align the image, but it sits in the right location - just above the page title)

    So for the page Division B and all their child pages, I'll use the featured image with division A's logo

    For the page Division B and all their child pages, I'll show division B's logo

     

    Does this explain things more clearly?

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

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