• 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

How to display a featured image on a page in Gallery Pro

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 › How to display a featured image on a page in Gallery Pro

This topic is: not resolved

Tagged: featured image, Gallery Pro

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 7 months ago by AnitaC.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 28, 2018 at 12:55 am #221182
    StephenD
    Participant

    Hi,

    I'm using Gallery Pro and really like the large featured images on posts. I'd like some of my pages to have the same feature but the theme doesn't have featured images enabled on pages.

    How can I enable featured images on pages? Do I need to add a function? If so, what's the code I need?

    single.php contains the following code for displaying the image:

    $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
    		echo '<div class="hero flexible-widget-area bg bg-scrim text-center" style="background-image: url(' . $image[0] . ');"><div class="wrap">';
    		genesis_entry_header_markup_open();
    	  	genesis_do_post_title();
    		genesis_post_info();
    		genesis_entry_header_markup_close();
    		echo '</div></div>';

    Thanks!

    June 28, 2018 at 2:51 am #221184
    StephenD
    Participant

    Hi,

    I've resolved this. It's not a perfect solution but it works.

    This is what I did.

    1) Made a copy of single.php and renamed it page.php
    2) Uploaded the new page.php file to the theme folder

    For some reason there was a large gap between the navigation menu and the featured image, and the entry title was left-aligned, so I:

    3) Added the following custom body class - single - to fix the space issue
    4) Added the following CSS code to center align the page title:

    .single .entry-title {
            text-align: center;
     }
    June 28, 2018 at 6:16 am #221188
    AnitaC
    Keymaster

    Hi Stephen, I wrote a tutorial on how to add the image. It's just a snippet. If you want to remove the page.php file you created, this may be a better solution for you. Tutorial is here.


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to display a featured image on a page in Gallery Pro’ is closed to new 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