Site logo

Archived topic

Move meta tags including icons below entry title

2 replies · Started by Peter on April 5, 2020

Viewing posts 1–3 of 3

Hi,
I have tried to find an answer to a problem here on the forum pages, but no luck.
What I am seeking is an easy way (code snippet?) to move the single post meta tags (Categories, Tags, Date) <u>including icons</u> centered below the (centered) post entry title.
Is that possible.
There are a lot of people asking about this on the forum pages - maybe this could be part of a future version of the GeneratePress customizer? :-)
I've uploaded an image to clarify here: https://imgur.com/a/ExeQSu4
Thanks.
P.

edit:
It's basically the content of the footer.entry-meta container I would like to move up below the entry title of single posts.
I guess this could be done using a GP hook or a code snippet in a child theme's functions.php file.
But I am lacking the php-code to do this.

Hi there,

try this function:

add_action( 'after_setup_theme', 'tu_move_entry_meta' );
function tu_move_entry_meta() {
    if ( is_single() ) {
        remove_action( 'generate_after_entry_content', 'generate_footer_meta' );
        add_action( 'generate_after_entry_title', 'generate_footer_meta' );
    }
}
This archived topic is closed to new replies.