• Resolved metsav

    (@metsav)


    How can I get the year to show in the gallery date boxed?
    It shows only day and month.
    And is it possible to get the date to show like this

    20
    aug.
    2021

    Currently it is like this
    20 aug.

Viewing 1 replies (of 1 total)
  • Plugin Author Qode

    (@qodeinteractive)

    Hi there,

    There is no option within the widget to choose to display the year though you could edit the theme files and add this on your side if you wish this.
    You will find the path in
    wp-content/plugins/qi-addons-for-elementor/inc/blog/templates/parts/post-info/date-boxed.php

    and you will need to add 2 code snippets.

    On line 10 please add :

    $date_year = 'Y';

    And on line 14 you can replace the whole code with this one:

    <?php echo esc_html( get_the_time( $date_day ) . ' ' . get_the_time( $date_month ) . ' ' . get_the_time( $date_year) ); ?>

    Here is a screenshot that will show you the whole code.

    We hope this helped and let us know if you have any additional questions.

    Regards,
    Qode

Viewing 1 replies (of 1 total)
  • The topic ‘Year to blog in blog gallery’ is closed to new replies.