Community Forums › Forums › Archived Forums › Design Tips and Tricks › Post images
- This topic has 5 replies, 3 voices, and was last updated 13 years, 3 months ago by
tribalcafe.
-
AuthorPosts
-
November 16, 2012 at 5:52 am #277
tribalcafe
MemberHi,
I am working on my own site http://www.garyfox.co.uk and wondered if there is any tips available for this problem I am having:
added code to display post images on blog above post info and content
/** Remove default post image */
remove_action( 'genesis_post_content', 'genesis_do_post_image' );/** Add custom post image above post title */
add_action( 'genesis_before_post_content', 'generate_post_image', 5 );
function generate_post_image() {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( '<a href="%s" rel="bookmark"><img class="post-image" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
}}
BUT homepage now has two post images instead of one. Any ideas on how to remove / change that.
If you hadn't guessed already I am a novice but desperately trying to learn!
Best
Gary
November 16, 2012 at 6:47 am #279Andrea Rennick
MemberUnder Genesis -> Settings -> Content Archives, do you have the box checked to show thumbnails on archives pages? If so, uncheck it.
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
November 16, 2012 at 10:31 am #327Rajtilak
MemberHi Andrea,
How do I setup my Balance theme posts to be like Brian's? If you see, the home page of the blog only contains post excerpts but not the pictures inside the post, even though the picture is well inside the post excerpt. What I want to do for my website is that on the home page the posts would have a thumbnail (not necessarily the one on the post) and a little excerpt (which may or may not be a part of the post).
I know this might actually sound lame, I am quite new on WordPress. Any help would be highly appreciated.
Website: TechniColor | Facebook: Rajtilak Bhattacharjee
November 17, 2012 at 5:23 am #407tribalcafe
MemberAndrea, you are a star and thank you so much for that it was causing me such problems. Feel such an idiot that it was so simple - still learning !
thank you
Gary
November 17, 2012 at 5:40 am #408tribalcafe
MemberAndrea,
Quick update and sorry for the change. It did work on home page but I have lost the featured image in main blog page as well. I will submit a support ticket on this. Any other suggestions welcome.
Gary
November 17, 2012 at 10:42 am #434tribalcafe
MemberBrilliant I simply changed the following
'grid_image_size'=>'grid-thumbnail', to 'grid_image_size' => 0,and it works perfectly
I love the logic of Genesis it is a great platform
many thanks
Gary
-
AuthorPosts
- The topic ‘Post images’ is closed to new replies.