I am new to WordPress and followed the plugin instructions but having trouble getting the plugin to “render” correctly in my Gridster theme that is active. It shows my three sample images, but in an ordered list, so it is clear to me that the javascript part is not installed into the correct area for it to work.
I am not clear on where to move the files in the theme folder and then exactly what code to paste into the theme folder functions.php file.
Thanks for any help, the plugin looks exactly like what I need for my site (local right now).
Patrick
]]>In the admin the interval dropdown is labeled.
The amount of time to delay between automatically cycling an item. If 0, carousel will not automatically cycle.
But there isn’t an option for 0 in that dropdown, it starts at 0.5 and goes up to 10 in half second increments.
Even after adding an option for 0 by editing line 215 in twitter-bootstrap-slider.php to read
for ($i=0; $i<=20; $i++) {
The slideshow is still running automatically when the page loads. Maybe the zero is throwing things off elsewhere?
]]>i changed code:
from
if(!empty($image['link']) && $image['link']!=='#') $items[$i] .= '<a href="'.$image['link'].'">';
$items[$i] .= '<img src="'.$image['image'].'">';
if(!empty($image['link']) && $image['link']!=='#') $items[$i] .= '</a>';
if(!empty($image['caption']) ) $items[$i] .= '<div class="carousel-caption">'.stripslashes($image['caption']).'</div>';
to
if(!empty($image['link']) && $image['link']!=='#') $items[$i] .= '<a href="'.$image['link'].'">';
$items[$i] .= '<img src="'.$image['image'].'">';
if(!empty($image['caption']) ) $items[$i] .= '<div class="carousel-caption">'.stripslashes($image['caption']).'</div>';
if(!empty($image['link']) && $image['link']!=='#') $items[$i] .= '</a>';
]]>
Downloaded the plug-in and when activated fails with the following error message:
Parse error: syntax error, unexpected ‘?>’, expecting function (T_FUNCTION) in \wp-content\plugins\twitter-bootstrap-slider\twitter-bootstrap-slider.php on line 356
]]>