Adding div below primary navigation
add_action( 'genesis_before_content_sidebar_wrap', 'feature_my_single_post_image' ); function feature_my_single_post_image() { if( is_singular( 'page' ) ) { global $post; $size = 'full-size'; $default_attr = array( 'class' => "aligncenter attachment-$size $size", 'alt' => $post->post_title, 'title' => $post->post_title, ); printf( '<div class="example">%s</div>', genesis_get_image( array( 'size' => $size, 'attr' => $default_attr ) ) ); } } add_image_size('panoramic', 1140, 199, TRUE); add_filter( 'image_size_names_choose', 'my_custom_image_sizes_choose' ); function my_custom_image_sizes_choose( $sizes ) { $custom_sizes = array( 'panoramic' => 'Panoramic', ); return array_merge( $sizes, $custom_sizes ); }
Credit: https://www.organicweb.com.au/17445/wordpress/genesis-move-featured-image/
Leave a Reply