Markers on a slider | WordPress.org

[ad_1]

Hello @xstanley

Thank you very much for using our plugin.

Please, follow the instructions below:

Insert an “HTML Content” field in the form, and enter the following code as its content:

<script>
	fbuilderjQuery(document).one('showHideDepEvent', function(){
		(function(){
    var $ = fbuilderjQuery, x = 5;
    $('.cff-slider-field .slider').each(function(){
        let e = $(this);
        e.wrap('<div class="'+(e.hasClass('large') ? 'large' : ( e.hasClass('medium') ? 'medium' : 'small') )+'"></div>');
        e.removeClass('small medium').addClass('large');
        for(let i = 0; i <= x; i++) {
						if(i != x) {
						  e.after('<span class="dot" style="position:absolute;left:'+i*(100/x)+'%"></span>');	
						} else {
							e.after('<span class="dot" style="position:absolute;right:0"></span>');
						}
            
        }
    });
	})();
	});
</script>
<style>
#fbuilder .cff-slider-field .dot{
	display:inline-block;
	width: 15px;
	height: 15px;
	background: rgba(29,148,255,0.5);
	border-radius: 20px;
	top:0px;
}
</style>

To vary the number of marks, modify x=5 with the preferred number.

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer