Tuesday, April 23, 2013

[Help Wordpress] Is there a way to choose the starting slider via php function?


I have added the necessary option for startslideID


if(count($init_codes) > 0 ) {
// $init_codes is an array that holds slider JavaScript initialization codes // You may do string replacement to change option startSlideId $configslide = str_replace("template:'default'","template:'default',startSlideId:2",$init_codes[2]);


}


$configslide is the altered option. What do I need to do with this variable in order to work in the slide?



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post