Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Resolved] Center Categories and Comment Data Below Read More Button

Home Forums Support Center Categories and Comment Data Below Read More Button

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #482344
    Janine

    Hi, guys!

    How can I center the categories and comment data below the Read More button? Thank you!

    GP Premium 1.5.6
    #482346
    Janine

    Or better still, how can I move the categories and how many comments so that is below the post title? Thank you!

    #482349
    Janine

    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!

    #482369
    Janine

    I like the icons you use for Categories and Comments. Are there any options for Author?

    #482376
    Janine

    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.

    #482681
    Leo
    Staff
    Customer Support

    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.

    #482703
    Janine

    Leo, this doesn’t look like CSS. Should I place this in the functions.php? Thank you.

    #482724
    Janine

    Leo, I read further and answered my question. I will add this code to the functions.php or a site plugin. Thanks.

    #482771
    Leo
    Staff
    Customer Support

    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.

    #484905
    Janine

    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!

    #484981
    Leo
    Staff
    Customer Support

    Try this:

    footer.entry-meta {
        text-align: center;
    }
    #485226
    Janine

    Thanks, Leo.

    #485568
    Leo
    Staff
    Customer Support
Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.