Support » Plugin: Timeline History » Default Selected Event

  • Resolved Jorge Rodriguez


    Hi again! 🙂 I would like to make a request, if it’s ok.

    Would it be possible somehow with the plugin to select which event to show selected when the page loads? I mean, let’s say there are this events to be shown in a timeline:

    1) Event 1 – Title 1 – 1990
    2) Event 2 – Title 2 – 1995
    3) Event 3 – Title 3 – 2000
    4) Event 4 – Title 4 – 2005
    5) Event 5 – Title 5 – 2010

    Would there be a way to select, let’s say, Event number 3 dated year 2000, as the default event that gets to be shown and selected when the page loads?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sehgal.sunny


    Hi @catupiryisjustcreamcheese,

    Sorry for late reply.

    As of now this feature is not possible but by the Jquery you can do it forcefully.

    You have to just increase the value of scaleX according to your event position.
    <span class=”filling-line” aria-hidden=”true” style=”transform: scaleX(0.180217);”></span>

    Thread Starter Jorge Rodriguez


    Dear Sehgal,

    thank you for your message. It was very helpful, and you were right. With a bit of jQuery could be done. I will add this information just in case it could be useful for somebody else:

    I added these 2 lines of code to the end of the file “history.js”(just before the last “});” and it worked.

    $(“.events”).css(“transform”, “translateX(226px)”);
    $(‘.events > ol:nth-child(1) > li:nth-child(3) > a:nth-child(1)’)[0].click();


    Plugin Author sehgal.sunny


    Thanks @catupiryisjustcreamcheese 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default Selected Event’ is closed to new replies.