- This topic has 20 replies, 4 voices, and was last updated 6 years, 3 months ago by Tom.
-
AuthorPosts
-
December 26, 2017 at 7:16 am #457229LoGP
Hello,
Continuing from this topic:
https://generatepress.com/forums/topic/change-position-of-meta-information-on-home-page/1) How do I move the post-meta information above my title on the blog page? (I’ve tried your solution to use before_entry but that moves the post-meta above my thumbnail, see my website).
2) How do I remove the category font awesome icon?
Cheers
LDecember 26, 2017 at 11:40 am #457333LeoStaffCustomer SupportHi there,
1) What about adding this CSS:
.entry-meta { padding-left: 233px; }
2) Try this:
.cat-links:before { display: none; }
December 26, 2017 at 2:59 pm #457424LoGP1) This moves the post-meta above the title, but also above the thumbnail. The post-meta should align with on the same height as the thumbnail. Also on mobile it doesn’t look right.
2) Works thanks.
Cheers
LDecember 26, 2017 at 6:59 pm #457489LeoStaffCustomer SupportHmm there should be a
generate_before_entry_title
hook. Tom used it here: https://generatepress.com/forums/topic/blog-category-above-title/#post-316793But you’ve tried it and didn’t work?
December 27, 2017 at 12:35 am #457627LoGPHey Leo,
Yup, tried it but didn’t work.
This is the snippet I use:
add_action( ‘after_setup_theme’, ‘tu_move_footer_entry_meta’ );
function tu_move_footer_entry_meta() {
if ( ! is_singular() ) {
remove_action( ‘generate_after_entry_content’, ‘generate_footer_meta’ );
add_action( ‘generate_before_entry_title’, ‘generate_footer_meta’ );
}
}December 27, 2017 at 10:35 am #457958LeoStaffCustomer SupportDo you only want that on the main blog page?
If so give this a shot:
add_action( ‘after_setup_theme’, ‘tu_move_footer_entry_meta’ ); function tu_move_footer_entry_meta() { if ( is_home() ) { remove_action( ‘generate_after_entry_content’, ‘generate_footer_meta’ ); add_action( ‘generate_before_entry_title’, ‘generate_footer_meta’ ); } }
December 28, 2017 at 4:27 am #458349AkhmadHaving the same issue, if putting conditional tag and hook ‘after_setup_theme’ it doesn’t work. But without conditional tag it works.
Try change ‘after_setup_theme’ to ‘wp’ if using conditional tag and it works for me.
December 28, 2017 at 7:05 am #458508LeoStaffCustomer SupportAwesome 🙂
December 28, 2017 at 10:06 am #458646LoGP@Leo, the code you provided also didn’t do it.
@Akhmed, sorry I don’t really understand. What do I have to do exactly?
Thanks
LDecember 28, 2017 at 2:34 pm #458835LeoStaffCustomer SupportTry this:
add_action( 'wp', 'tu_move_footer_entry_meta' ); function tu_move_footer_entry_meta() { if ( is_home() ) { remove_action( 'generate_after_entry_content', 'generate_footer_meta' ); add_action( 'generate_before_entry_title', 'generate_footer_meta' ); } }
December 28, 2017 at 3:34 pm #458870LoGPNow the category shows up below my excerpt?
December 28, 2017 at 10:28 pm #459003TomLead DeveloperLead DeveloperHmm that’s not what that code should do.
Without the code above, where does the category show up? The same place?
December 29, 2017 at 8:50 am #459360LoGPHey,
I removed the code. The category indeed shows up in the same place.
Cheers
LDecember 29, 2017 at 9:47 pm #459741TomLead DeveloperLead DeveloperCan you try the updated code above?: https://generatepress.com/forums/topic/move-post-meta-above-title/#post-458835
December 30, 2017 at 1:12 am #459794LoGPHey Leo,
Already tried that code. Tried it again. Still doesn’t work.
I started playing around and found something weird.
The category shows up in the correct place (above the title) when I also activate the Post Date in Layout > Blog > Archive. When I uncheck Post Date, the Post Category also disappears.
I could check both Post Date and Post Category and then hide the Post Date with CSS. But that seems like an improper work-around. Because in my case the post date should be removed. Not hidden.
What can I do next?
Cheers
LPS. The more I work with GP, the more I like it. I’m coming from Genesis, which I still really like. I feel that if you keep adding more customization options in GP, it can become big…
PPS. You should integrate your WP Show Posts plugin with GP 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.