Tuesday, April 23, 2013

[Help Wordpress] Initialize Royal Slider on AJAX Pages


Hello,


Most likely your theme cuts wp_footer part where slider script is printed. It's pretty tricky to retrieve slider JS options, but possible:


  • After you called get_new_royalslider, require file wp-content/plugins/new-royalslider/classes/NewRoyalSliderMain.php

  • Print init code.

E.g.:



$sliderid = 1;
echo get_new_royalslider($sliderid);

// Init code
include_once(ABSPATH.'wp-content/plugins/new-royalslider/classes/NewRoyalSliderMain.php');
$init_codes = NewRoyalSliderMain::$sliders_init_code;
if(count($init_codes) > 0 ) {
echo '';
}


You may also initialize it manually. Here are HTML version docs - http://dimsemenov.com/plugins/royal-slider/documentation/


Dmitry



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post

[Nice] [Premium Corporate themes] Modern Interior Responsive Wordpress Theme (Corporate)
[Premium Corporate themes] Modern Interior Responsive Wordpress Theme (Corporate)
[Premium Corporate themes] Modern Interior Responsive Wordpress Theme (Corporate)[Premium ...
[Nice] [Premium Entertainment themes] LA-BAND - Music Band Premium WordPress Theme (Entertainment)
[Premium Entertainment themes] LA
[Premium Entertainment themes] LA-BAND - Music Band Premium WordPress Theme (Entertainment...
[Help Wordpress] TouchCarousel "Match All" not working
Help Wordpress
TouchCarousel "Match All" not workingI'm trying to use touchcarousel to showcase featured ...
[Help Wordpress] Preload slides
Help Wordpress
Preload slidesThe website url: http://1.exto.nazwa.pl/wybrane-realizacje-all/I have a prob...
[Help Wordpress] Plugin not Working after updating to WP 3.6
Help Wordpress
Plugin not Working after updating to WP 3.6We are having the same problem: an upgrade to 3...