0

I have a view slideshow that I managed to set up by following these instructions.

I want to use a responsive slider plugin instead of the jQuery Cycle plugin in Views Style Settings. How can I use this JavaScript code to create the slideshow.

1

This isn't exactly what you asked for, however:

I have tried a bunch of slideshows that claim various degrees of responsiveness and the best out of the box solution I have found that works as expected, is easy to set up, and is properly responsive, is the flexslider module, which can either be used by itself, or can be used with the views slideshow module.

If you haven't tried it it is definitely worth trying.

| improve this answer | |
0

Not sure why my question was downvoted but here is the answer.

I created a views block for my custom content type "Slider Images" and called it "Home Page Slider". I set the "Slider Images" Link and Image as Fields in the view and formatted it as an HTML list.

In my template.php file I used this function

function THEMENAME_preprocess_views_view(&$vars) {
   $view = $vars['view'];
   // if Home Page Slider View add the appropriate js and css
   if($view->name == 'home_page_slider') {
     // add needed javascript
     drupal_add_js(drupal_get_path('theme', 'THEMENAME') . '/js/responsiveslides.min.js');
     // add needed stylesheet
     drupal_add_css(drupal_get_path('theme', 'THEMENAME') .'/css/responsiveslides.css');
   }
}

to add my JS and CSS needed for the responsive slider plugin I wanted to use

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.