Support » Theme: Storefront » Featured Image missing from Pages in Storefront

  • My default Featured Images for the pages outside of the ‘shop’ are not showing when using the Storefront theme.

    Is this normal?

    Does anyone know how I can enable it them to show? They show up in the Dashboard/admin OK just not at the front-end 🙁

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Colourscope

    (@colourscope)

    My URL to the page not showing Featured Image is:

    http://www.morganshairandbeauty.co.uk/wordpress/?page_id=28

    Hope anyone can help! Driving me nuts!

    Hey,

    Add something like this to your child themes functions.php file:

    function storefront_page_content() {
    		?>
    		<div class="entry-content" itemprop="mainContentOfPage">
    <?php
    if ( has_post_thumbnail() ) {
    			the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) );
    		} ?>
    			<?php the_content(); ?>
    			<?php
    				wp_link_pages( array(
    					'before' => '<div class="page-links">' . __( 'Pages:', 'storefront' ),
    					'after'  => '</div>',
    				) );
    			?>
    		</div><!-- .entry-content -->
    		<?php
    	}
    Thread Starter Colourscope

    (@colourscope)

    Brilliant, thanks. It worked!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured Image missing from Pages in Storefront’ is closed to new replies.