Show Year In Articles Scroller (Scroller) - Question | JoomShaper

Show Year In Articles Scroller (Scroller)

MB

Marcel Boehm

SP Page Builder 1 month ago

Is it possible to show the year in Article Scroller (Scroller)? Only the day and month are currently displayed. However, as we don't have that many news items, sometimes an old article is displayed before a new one when scrolling. This is a bit confusing.

0
2 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 month ago #151958

Hi Marcel,

by default no, but you can override this adon and customize it for your project purpose. You only need to edit one file (site.php) of it.

Probably that part must be edited:

            $output .= '<span class="sppb-articles-scroller-day">' . HTMLHelper::_('date', $item->publish_up, 'd') . '</span>';
            $output .= '<span class="sppb-articles-scroller-month">' . HTMLHelper::_('date', $item->publish_up, 'M') . '</span>';
0
MB
Marcel Boehm
Accepted Answer
1 month ago #152036

Perfect that's great for me. I have changed it.

0