Show year in Articles Scroller (Scroller) - Forum | JoomShaper
Solved SP Page Builder

Show year in Articles Scroller (Scroller)

Asked by Marcel Boehm 2 years ago Last activity 2 years 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.

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
2 years ago · edited

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>';
Marcel Boehm Asked this

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

Log in to reply.