Show Years only in timeline?

StatusIDPriorityType
Closed17110HighAll-Around jQuery
Profile Reply
UNHIVE Client

Hi. Is it possible to sort the whole timeline by year? On “General Options” I have the option for “months” and “categories” but not years. Is this possible? Thx.
Alex

Replies

User Description Posted On
Shindiri Support team Administrator

Hi,

Yes this is also possible.

jquery.timeline.min file.

wp-content -> plugins -> content_timeline -> js -> frontend -> jquery.timeline.min

If you want to hide days make modifications on line 459 and comment variable “v”:

o[r] = ‘<a href=”#’ + r + ‘” class=”t_line_node’ + p + ‘” style=”left: ‘ + d + ‘%; position:absolute; text-align:center;”>’ /*+ v*/;

If you want to hide months from Content Timeline you need to make modifications on lines 477 and 484 and comment these bold sections:

<h4 class=”t_line_month” style=”position:abolute; width:100% top:0; text-align:center;”>’ /*+ u[p]*/ + (n.options.yearsOn ? ‘<span class=”t_line_month_year”> ‘ + (h < 0 ? -h + ” B.C.” : h) + “</span>” : “”) + “</h4>\n”;

and

<h4 class=”t_line_month” style=”position:abolute; width:100% top:0; text-align:center;”>’ /*+ (typeof u[p] !== “undefined” ? u[p] : “”)*/ + (n.options.yearsOn ? ‘<span class=”t_line_month_year”> ‘ + h + “</span>” : “”) + “</h4>\n”;

Best regards,
Shindiri Studio | http://www.shindiristudio.com/

× This ticket is closed.