• Plugin Author Abu Bakar

    (@absikandar)


    To display reviews in a slider format, this plugin uses a third party jQuery slider plugin from kenwheeler

    The original slider had a lot of customization settings and it was not possible to integrate all of those in my plugin. That’s why I used only a handful of them which I thought would be necessary.

    But that’s not the END!!!!

    You can include as many options from original slider as you want. All of those can be seen on above link.

    You need to use the following format to add those to your site.

    $('element').slick('slickSetOption', 'optionname', value, true);

    Below is an example on how you can add ‘autoplayspeed’ setting to your site. (Because my plugin does not have that setting)

    add_action('wp_footer', 'twb_modify_slick_script_options', 999 );
    function twb_modify_slick_script_options(){ ?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){	
    			$('.twb_wc_reviews_slide').slick('slickSetOption', 'autoplaySpeed', 5000, true);
    		});
    	</script>	
    <?php
    }

    Add the above code to your site’s functions.php or custom php plugin file.

    5000 is in millisecond and change it with the value of your choice.

    Doing this requires a little bit of developer’s knowledge so if you don’t know what you are doing, I recommend you hire a developer or contact me for support here..

    Regards,
    Abu

    • This topic was modified 3 years, 4 months ago by Abu Bakar.
  • The topic ‘Slider Settings Add/Modify’ is closed to new replies.