Inserting the slider in PHP code

If you want to add a slider instance from within the theme's template, you can use the slider_pro(index, [attributes]) function like this:

<?php echo slider_pro(2); ?>

You can also specify a list of parameters which will override the options specified in the slider's admin area:

<?php echo slider_pro(2, array("width"=>"100%", "height"=>150, "effect_type"=>"swipe")); ?>

NOTE: When you add a slider using PHP code, it's necessary to set the slider's 'Include Skin' option, from the 'General' panel, to true.

Have more questions? Submit a request


Article is closed for comments.
Powered by Zendesk