Welcome!
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › Archived Forums › General Discussion › Move Post Meta/Title Under Featured Image
Tagged: move post entry meta
- This topic has 8 replies, 3 voices, and was last updated 10 years, 8 months ago by
dmor71.
-
AuthorPosts
-
March 28, 2015 at 10:58 pm #145985
dmor71
ParticipantI'm need to move the post meta info and add post title under the featured image on the archive page and post page. Images show what I have now and what I need. Thanks for any help.
Project url: http://webclient.co/pacifica/featured-news/
Current Project
What I need it to look like
http://webclient.co/pacifica/featured-news/
May 8, 2015 at 3:32 pm #151063Susan
ModeratorAs you posted this a while ago, I hope you were able to get your issue resolved. If it is resolved, please mark this thread as “resolved”, so it can be closed.
If you are still having issues, report back here, and I will try to escalate.
May 8, 2015 at 3:36 pm #151066dmor71
ParticipantIt's not resolved. I'm still having issues with getting this to work. The current page I linked to has an image but that is just added in the post. I really need the "featured image" to go there and the post title and meta under it like the images above. Any help to get this resolved would greatly appreciated.
May 9, 2015 at 8:59 am #151241Johann Kratzik
MemberI can surely help you but it's not so easy to describe the solution in a post. Can you send me your theme to [email protected]? Then I make the adjustments and send you the files back.
Offering customization work for FREE – Read more
May 9, 2015 at 12:16 pm #151290Johann Kratzik
MemberThis solution worked for me with the Genesis Sample Child Theme.
Create a archive.php file and add this:
<?php remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_action( 'genesis_before_entry_content', 'genesis_do_post_image' ); add_action( 'genesis_before_entry_content', 'genesis_entry_header_markup_open' ); add_action( 'genesis_before_entry_content', 'genesis_do_post_title' ); add_action( 'genesis_before_entry_content', 'genesis_post_info' ); add_action( 'genesis_before_entry_content', 'genesis_post_meta' ); add_action( 'genesis_before_entry_content', 'genesis_entry_header_markup_close' ); genesis(); ?>Create a single.php file and add this:
<?php remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_action( 'genesis_before_entry_content', 'jk_do_single_post_image' ); add_action( 'genesis_before_entry_content', 'genesis_entry_header_markup_open' ); add_action( 'genesis_before_entry_content', 'genesis_do_post_title' ); add_action( 'genesis_before_entry_content', 'genesis_post_info' ); add_action( 'genesis_before_entry_content', 'genesis_post_meta' ); add_action( 'genesis_before_entry_content', 'genesis_entry_header_markup_close' ); function jk_do_single_post_image() { $img = genesis_get_image( array( 'format' => 'html', 'size' => genesis_get_option( 'image_size' ), 'context' => 'archive', 'attr' => genesis_parse_attr( 'entry-image' ), ) ); if ( ! empty( $img ) ) printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), $img ); } genesis(); ?>
Offering customization work for FREE – Read more
May 9, 2015 at 12:22 pm #151291dmor71
ParticipantHey, sorry I'm now getting back to you. I will give this a try. I was guessing I was going to have to make a custom template page because I couldn't do it with actions or filters. I'm really surprised, disappointing rather, there isn't any built in support to simply add a featured image to a post in Genesis.
May 9, 2015 at 12:47 pm #151292dmor71
ParticipantJohann Kratzik,
Thanks a whole bunch. That worked great!
May 9, 2015 at 12:52 pm #151293Johann Kratzik
MemberI am glad to hear 🙂 Then you can mark the thread as "resolved" so it can be closed. Maybe you want to take a look at my signature and spread the word.
Offering customization work for FREE – Read more
May 9, 2015 at 12:54 pm #151294dmor71
ParticipantWill do
-
AuthorPosts
- The topic ‘Move Post Meta/Title Under Featured Image’ is closed to new replies.