Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
August 31, 2014 at 3:41 am in reply to: How to make the featured image to fill the whole width of the content? #122014monicahrb14Member
I've tried it and it appears quite weirdly now - http://intoxicatingvampires.org I tried replacing parts of the already exisiting code in functions.php an it didn't work, then I replaced the whole code for featured images and here's what happened.
I'm definitely not an expert in these functions so I'm sorry if I'm doing it wrong or making some stupid mistakes. I'm still learning.And by the way, here's what I used before for the featured images if it's any help.
/** Add support for featured image **/ remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); add_action( 'genesis_entry_header', 'genesis_do_post_image', 3 ); add_theme_support( 'genesis_do_post_image' ); add_image_size( 'home-thumb', 800, 300, TRUE ); add_action( 'genesis_entry_content', 'featured_image_before_content', 3 ); function featured_image_before_content() { if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) ) return; if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) { printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', $image, the_title_attribute( 'echo=0' ) ); } }
August 27, 2014 at 1:30 pm in reply to: How to customize the featured image on Genesis Sample theme? #121419monicahrb14MemberFinally, it worked! Thank you so much! 🙂
August 27, 2014 at 6:57 am in reply to: How to customize the featured image on Genesis Sample theme? #121294monicahrb14MemberI tried and nothing changed.
I believe there's something that's making the images resize according to the height. Because they're always 300px high and the width is always different. -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)