[Support request] Move meta tags including icons below entry title

Home Forums Support [Support request] Move meta tags including icons below entry title

Home Forums Support Move meta tags including icons below entry title

  • This topic has 2 replies, 2 voices, and was last updated 4 years ago by David.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1227046
    Peter

    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.

    #1227051
    Peter

    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.

    #1227202
    David
    Staff
    Customer Support

    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' );
        }
    }
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.