• Home
  • Blog
  • Showcase
  • Setup Docs
    • Sunshine Help
    • Flex Help
  • Support
    • Support Area
    • Contact us
    • Feedback
  • Connect
    • Newsletter
    • Twitter
    • Facebook
  • My Account
  • Flex
  • Sunshine
Support : Simple Pro Themes

Support : Simple Pro Themes

Reply To: FEATURED IMAGE

If you have purchased a product, please enter the email address that you used to register at time of purchase.
Log In
Lost Password

Create an Account
  • Your username must be unique, and cannot be changed later.
  • We use your email address to email you a secure password and verify your account.

Support › Forums › Flex Theme › FEATURED IMAGE › Reply To: FEATURED IMAGE

June 14, 2015 at 1:30 am #297
Chinmoy Paul
Moderator

Add the following code in your functions.php file

add_action( 'genesis_entry_content', 'genesis_do_post_image_single_post', 8 );
function genesis_do_post_image_single_post() {
  
  if( ! is_singular('post') )
    return;

  $img = genesis_get_image( array(
			'format'  => 'html',
			'size'    => 'full',
			'context' => 'archive',
			'attr'    => array('class' => 'aligncenter'),
		) );

	if ( ! empty( $img ) )
		printf( '<p>%s</p>', $img );
}

====================

Title:
Are you adding the title in WP Editor? Do not need to add it there. Title will automatically come on Single details page.

Copyright © 2023 · Simple PRO Themes for Genesis Framework · About · FAQs · Contact · Affiliates