[Resolved] Slider Settings Add OR Modify

Home Support TWB Woocommerce Reviews Slider Settings Add OR Modify

  • This topic has 0 replies, 1 voice, and was last updated 1 year ago by Abu.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #24069
    Abu
    Keymaster

    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 buy paid support here..

    Regards,
    Abu

Viewing 1 post (of 1 total)
  • The topic ‘Slider Settings Add OR Modify’ is closed to new replies.