[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

Drupal 7. How to work with JS slider

This tutorial is going to show you how to work with the JS slider on your  Drupal 7 template and add more slides to it.

The slider will show up on your template exactly the same way you it does on the live demo preview only after you have installed your template with the sample demo profile.
Once you have done that, you can proceed to editing the existing slides:

  1. To find them in your admin, go to the top Content menu.  Under Show only items where select type -> Slider and  click on “Filter”. This will open  a list of all slides that  come with  your template sample data.

  2. Click on “edit” under the “OPERATIONS” column in order to edit each particular slide.

  3. On the next page,  you will see the fields:
    • Title where you can change the name of  your current slide;
    • Body where you can change the slider description text;
    • Text format where you can choose the input format for your content;
    • Upload slide. To change the current slider image, click on Remove.

    • Click on Browse ,  navigate to your new image on your computer, select it, click Open. Click Upload;
    • Menu Settings where you can add a menu tab pointed to the description text you added to the Body;
    • URL Path Settings where you can manually insert an alternative URL by which this content you added to the Body can be accessed;
    • Publishing options where you can enable/disable the slide on your site.
  4. Once you are done, click on “Save” at the very bottom and open the front page of your site to preview the changes.

In order to add a new slide:

  1. Click on the Add content menu at the top.
  2. On the text page, click on Slider (use to create slides in content-slider).

  3. Specify the title for the slider content page in the Text field;
  4. Click on “Browse” under the Upload slide and navigate to the image on  your computer. The image should have the same height and width as the rest of the slider images. If your new image is larger, it will be wrongly scaled/cropped.
  5. Make sure that the slide is published by checking the Published option in the Publishing options;
  6. Click on Save at the very bottom;
  7. Still logged as  an administrator,  go to the to page on your site where the Slider block is enabled  and  mouse over the top right corner of your slider image on the front page. You will see a menu. Click on it. Select “Edit View”  to modify the display of your Slider view. Or, alternatively, go to admin -> Structure -> Views -> Slider.

  8. On the next page, under Displays -> Pager -> Use pager: Display a specified number of items | # items  click on # that stands for the current number of slides in your slider.

  9. In the lightbox window change the number and click on Apply (all displays);

  10. Click on “Save”;
  11. Open the front end of your site to preview the changes.

Feel free to check the detailed video tutorial below:

Drupal 7. How to work with JS slider