[Resolved] Increase space between “by” in the “last updated” section.

Home Forums Support [Resolved] Increase space between “by” in the “last updated” section.

Home Forums Support Increase space between “by” in the “last updated” section.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1663410
    Jason

    Hello,

    I’m using a code snippet to display the “last updated” date instead of the “posted on” date. I have the author name listed next to it, but there’s no space between the date and the “by author name” section. I’m sure there’s just a space I’m missing in the code. Can someone assist?

    Here is the code snippet I’m using:

    add_filter( ‘generate_post_date_output’, function( $output, $time_string ) {
    printf( ‘<span class=”posted-on”>%s</span>’,
    $time_string
    );
    }, 10, 2 );

    And here is the CSS I’m using:

    }
    .posted-on .updated {
    display: inline-block;
    }
    .posted-on .updated:before {
    content: “Last Updated: “;
    }
    time.entry-date.published {
    display: none;
    }

    #1663452
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know ๐Ÿ™‚

    #1663457
    Jason

    Just provided, thanks.

    #1663469
    Leo
    Staff
    Customer Support

    Try this:

    .entry-meta .byline {
        padding-left: 5px;
    }
    #1663476
    Jason

    That worked, thank you!

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