• Resolved mathias73

    (@mathias73)


    Hi,

    I’ve created a timeline with some dates and one is 1987 and the other is 2007 some the space between is too long so i added your code in history.js but nothing change.

    var total_event = $(‘.cd-horizontal-timeline .timeline .events-wrapper .events ol li’).length;
    	for(var i=1; i<= total_event; i++){
    		$(‘.cd-horizontal-timeline .timeline .events-wrapper .events ol li:nth-child(‘+i+’) a’).css(‘left’,”+i*100+’px’);
    	}

    Thank you for your help

    • This topic was modified 6 years, 2 months ago by mathias73.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author sehgal.sunny

    (@sehgalsunny)

    Hi @mathias73,

    Use below code and first copy on text-file then use it under footer.php before </body> tag.

    <script>
    jQuery(document).ready(function($){
    var total_event = $(‘.cd-horizontal-timeline .timeline .events-wrapper .events ol li’).length;
    for(var i=1; i<= total_event; i++){
    $(‘.cd-horizontal-timeline .timeline .events-wrapper .events ol li:nth-child(‘+i+’) a’).css(‘left’,+i*100+’px’);
    }
    });
    </script>

    • This reply was modified 6 years, 1 month ago by sehgal.sunny.
    Plugin Author sehgal.sunny

    (@sehgalsunny)

    I think your query resolved, now I am closing this as a resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Space between Dates’ is closed to new replies.