Genesis me feature image show/hide kaise kare


(Mohd Kashif) #1

meri site me feature image show hota hai me bahut si post me feature image hide rakhna chahta hu, genesis me feature image show/hide kaise kare bina plugin ke


(Jumedeen khan) #2

Ye code functions.php me add karke kar sakte ho.

/* 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');
}

Source:- Show / Hide Genesis Featured Image on Specific Posts