• This seems like something basic that every theme should show, but I can’t get Astra to display the time the post was published next to the date/author.

    I know you can just add a snippet to the either the functions.php or the single.php? Could anyone offer some guidance?

    Thanks.

Viewing 1 replies (of 1 total)
  • Hi @marioluigi ,

    As of now, there is no option to enable the publish time. But it can be achieved using the code below in the child theme’s function.php file.

    add_filter( 'astra_post_date_format', 'astra_add_time_with_date' );
    
    /**
     * Filter function to add time in the published date of post.
     *
     * @param string $format default format is '' blank.
     * @return string
     */
    function astra_add_time_with_date( $format ) {
        $format = 'F j, Y, g:i a';
        return $format;
    }

    I am sure this will help.

    Regards,
    Deepak

Viewing 1 replies (of 1 total)

The topic ‘Show time published?’ is closed to new replies.