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

    Hi team Kriesi!

    I was wondering if it was possible to add the time of day to the date information served with blog posts (on the full posts and through the blog post content element).

    Instead of displaying as:
    April 30, 2016

    Could it display as per this example;
    April 30, 2016 11:12am

    Cheers,
    Marsha

    #636899

    Hey Marsha,

    Please go to Enfold/includes/loop-index.php file and find

                    echo "<time class='date-container minor-meta updated' >".get_the_time(get_option('date_format'))."</time>";

    and change it to

    echo "<time class='date-container minor-meta updated' >".get_the_time('F j, Y g:i a')."</time>";

    Best regards,
    Yigit

    #637210

    Thanks Yigit! That worked great for blog posts but where I have blog post content elements on the site, the time does not show still.

    #637579

    Hi,

    It does look fine on my end. If that is not what you meant, can you please post a screenshot and show the changes you would like to make so we can make sure that we are on the same page? :)

    Best regards,
    Yigit

    #639188

    Hi Yigit,

    I’m still not seeing the HH:DD am/pm on blog post elements, and the magazine element etc. I have included a link to a page showing this in the private content.

    Cheers,
    Marsha

    #639647

    Hi,

    For those elements, you have to go the config-templatebuilder > avia-shortcodes folder. Look for the magazine.php and postslider.php file. In the magazine element, go to line 583:

    $output .=			"<time class='av-magazine-time updated' {$markupTime}>".get_the_time('F j, Y g:i a', $entry->ID)."</time>";
    

    In the postslider.php file, go to line 442:

    $meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time('F j, Y g:i a', $the_id)."</time>";
    

    Best regards,
    Ismael

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