Archived topic
Center Categories and Comment Data Below Read More Button
12 replies · Started by Janine on January 29, 2018
Hi, guys!
How can I center the categories and comment data below the Read More button? Thank you!
Or better still, how can I move the categories and how many comments so that is below the post title? Thank you!
Along with the author name. So it would be Category Author Name # of Comments.
Maybe they could be separated by some symbol?
And I would like to remove the "by."
Thank you!
I like the icons you use for Categories and Comments. Are there any options for Author?
Could you send me the code for all of the above -- centering data below Read More and moving it under post title so that I can see how it all looks and then choose.
Thank you so much.
Hi there,
You should be able to use this snippet to move them below post title:
https://generatepress.com/forums/topic/change-position-of-meta-information-on-home-page/#post-453936
If you run into problems, we will need to see the site for this one.
Leo, this doesn't look like CSS. Should I place this in the functions.php? Thank you.
Leo, I read further and answered my question. I will add this code to the functions.php or a site plugin. Thanks.
Make sure it's your child theme's function.php. If you are not using a child theme then Code Snippet is the way to go.
Hi, Leo.
Using Code Snippet, I copied and pasted to following:
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_after_entry_header', 'generate_footer_meta' );
}
}
I don't like how it looks.
How can center the metadata below the Read More button? Thank you!
Try this:
footer.entry-meta {
text-align: center;
}
Thanks, Leo.
No problem.