• 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

Image before Page Title

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 › Image before Page Title

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 12 years, 4 months ago by Davinder Singh Kainth.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 6, 2014 at 12:01 am #93623
    icazeke
    Participant

    Hi!

    I wonder if someone could help me.

    As you could see in the Link i have a image before the "Page Title". In this case i havent given the page any title, to get it work. I have put H:1 blow image.

    Problem is, when for exampel sharing the page in FB it doesnt show any title because i dont have any 🙂

    So how could i make it look like this and still having a "page title".

    http://refvelsta.se/
    March 6, 2014 at 8:56 am #93664
    Davinder Singh Kainth
    Member

    You can use "featured image" functionality to show image before page title in single posts / pages.

    1. Add following code to functions.php file.

    //* Code to Display Featured Image on top of the post */
    add_action( 'genesis_before_entry', 'featured_post_image', 8);
    function featured_post_image() {
      if ( ! is_singular( 'post' ) )  return;
    	the_post_thumbnail('post-image');
    }
    

    2. Then open specific post in edit mode and upload featured image from middle right section. This image will show before post title.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    March 6, 2014 at 9:19 am #93668
    icazeke
    Participant

    hmm, i added the code and also set a futerd image but nothing happend.

    March 6, 2014 at 8:38 pm #93790
    Davinder Singh Kainth
    Member

    Strange, this code works fine while used on sample Genesis theme. Try code here - http://wpsites.net/web-design/display-featured-image-before-or-after-entry-title-on-single-posts-pages/


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

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

© 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