[Support request] How to change the format of the Entry Meta – Author and Date

Home Forums Support [Support request] How to change the format of the Entry Meta – Author and Date

Home Forums Support How to change the format of the Entry Meta – Author and Date

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #263904
    Paul

    Hi There,

    I would like to change the Entry Meta format from:

    [Date] by [Name]

    to

    By [Name] | [Date]

    Just wondering how to change it.

    Thanks so much.

    #263928
    Tom
    Lead Developer
    Lead Developer
    #935929
    webcréateur

    Hi there,

    Is there meanwhile a more recent workflow for this requirement?

    Regards.

    #935942
    webcréateur

    … with the new Post Meta Ordering?

    
    add_filter( 'generate_header_entry_meta_items', function() {
        return array(
            'date',
            'author',
            'categories',
        );
    } );
    #935980
    David
    Staff
    Customer Support

    Hi there,

    yes the new post meta ordering makes this function much easier and is the best way to do it now.

    #936013
    webcréateur

    Hi there,

    Thank you, but how can I add the seperator in Filter ? 🙂

    Date | Author | Category

    #936085
    Leo
    Staff
    Customer Support

    That would need to done with CSS:

    .cat-links, .posted-on {
        border-left: 1px solid #000;
        padding-left: 5px;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #936280
    webcréateur

    Thank you. I used this CSS:

    .author:before {
        content: " | " !important;
    }
    #936293
    Leo
    Staff
    Customer Support

    That would work too 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.