Community Forums › Forums › Archived Forums › Design Tips and Tricks › Set Featured Image Below Post Title..?
Tagged: entry-header, featured image
- This topic has 7 replies, 4 voices, and was last updated 10 years ago by
Brad Dalton.
-
AuthorPosts
-
July 26, 2015 at 3:56 pm #160521
Breezii K.
MemberHello!
I am using the Genesis Sample child theme for my site, and by default the featured image appears above the post title. I would like it to appear BELOW the post title, and managed to make that happen using this code...
// Code to Display Featured Image on below the post title
add_action( 'genesis_entry_content', 'featured_post_image', 8 );
function featured_post_image() {
if ( ! is_singular( 'post' ) ) return;
the_post_thumbnail('post-image');
}However... when I paste that code into my functions.php my posts now have the featured image BOTH above and below the post title.
Is there any way I can include code to this so that it hides or removes the image above the title?
The genesis sample child theme seems very limited because I cannot find the code within it that lets me remove the image any other way.
Instead all the other files within the child theme don't give me much code at all, it's rather empty - compared to the actual genesis theme files.
http://spiritearthawakening.comJuly 27, 2015 at 1:20 am #160552Brad Dalton
ParticipantYou'll find some handy code snippets using the SP Code Snippets page
Use the 3rd snippet to remove the image.
You may also want to change the 8 in the above code to 12 to add back the image below the title.
August 11, 2015 at 3:10 am #162010Breezii K.
MemberHello,
Thanks for the response. I am still somewhat confused however. I tried your suggestion (as well as every other suggestion I could find) online and nothing seems to be working for me.
I am not sure what else to do or what to try...? :}
Any advice would be appreciated.
Thanks for your time!
P.S. I had a friend attempt to make a custom single.php for the child theme in order to fix this but that didn't seem to work either. :/
August 11, 2015 at 4:23 am #162015cufarulcopiilor
MemberFebruary 15, 2016 at 4:38 pm #179097[email protected]
MemberI tried the code listed in the original post -- then changed the 8 to a 12 as suggested by Brad, but I got nothing.
The post title shows above the picture when you go to the page itself, but not when it is featured on the home page.
I didn't see anything in the "handy snippets" that Brad linked to, for this problem either.
Help anyone?
ThanksFebruary 15, 2016 at 11:07 pm #179111Brad Dalton
ParticipantFebruary 16, 2016 at 1:40 pm #179172[email protected]
MemberI don't know what that means. What is a hook and what do I do with it?
Thank you
February 17, 2016 at 2:05 am #179216Brad Dalton
Participant -
AuthorPosts
- The topic ‘Set Featured Image Below Post Title..?’ is closed to new replies.