Wednesday, June 5, 2013

[Help Wordpress] Use same slider but with different start slide


Use same slider but with different start slide



Hi,


Add such code somewhere after slider shortcode (or PHP function call):



// Init code
include_once(ABSPATH.'wp-content/plugins/new-royalslider/classes/NewRoyalSliderMain.php');
$init_codes = NewRoyalSliderMain::$sliders_init_code;


$init_codes is an array that holds initialization string for each slide on page. You may change/add options via simple string manipulations like str_replace. e.g. if your slider ID is 6, so you can get your string like so:



$init_codes[6] = str_replace($init_codes[6], 'startSlideId:10', `startSlideId:5`);

Dmitry



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post

Wellspring - A Health, Lifestyle & Fitness Theme (Health & Beauty) - New WordPress themes
h1 a:hover {background-color:#888;color:#fff ! important;} ...
Cayto - WooCommerce Responsive WordPress Theme (WooCommerce) - New WordPress themes
h1 a:hover {background-color:#888;color:#fff ! important;} ...
Wren - Responsive Blog, News, & Magazine Theme (Blog / Magazine) - New WordPress themes
h1 a:hover {background-color:#888;color:#fff ! important;} ...
Squares - Interactive Design Agency Portfolio Wordpress (Creative) - New WordPress themes
h1 a:hover {background-color:#888;color:#fff ! important;} ...
Avlar - Real Estate Theme (Real Estate) - New WordPress themes
h1 a:hover {background-color:#888;color:#fff ! important;} ...