You can build great websites. We can help! Join today and get access to 3118 training videos: Sign up now!

How to use the JCarousel Module for Drupal


JCarousel is a useful module for creating Drupal slideshows. It uses the JCarousel plugin from makes it easy to use via integration with Views.

Here's a simple example of how to use the JCarousel module.

Step 1: Install the modules

Make sure that you have these three modules installed and enabled:

Step 2: Create content with an image field


In order to show images, you will need content with images.

You can use the default "Article" content type if you wish. Go to Structure > Content types and make sure that you have a content type with an image field attached as in the image above. Then go to Add content and use that content type to create several content items with images attached.

Step 3: Create a view


Go to Structure > Views and click Add new view.

The important part of the view is "Create a block". Choose the JCarousel Display format and then click Continue & edit.

The image below shows the settings you will need. If you followed our instructions when setting up the view, the only thing you might have to change here is the Fields. Click Add and add the Content: Image field to your view.


Click Save to complete the creation of your view.

Step 4: Place the block


Go to Structure > Blocks and place your new JCarousel block somewhere on your site.

Once the block is live, it will look like the image below:


The JCarousel project page on warns:

"You will almost certainly need to do custom CSS in your theme in order to use this module. The default CSS only supports 100 pixel square items. A basic understanding of CSS is therefor required to use this module."

As you can see, the output here is 100 pixel square images.

You will need to add some CSS for JCarousel to your theme in order to change this width. The original CSS is in /sites/all/modules/jcarousel/skins/default/jcarousel-default.css

The width is being controlled by:

.jcarousel-skin-default .jcarousel-item {
 padding: 0;
 width: 100px;
 height: 100px;
 overflow: hidden;
 border: 1px solid #CCC;
 list-style: none;
 background: #fff none;

You can modify that and place it in your theme's CSS file.

About the author
Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. He was a teacher for many years before starting OSTraining. Steve wrote the best-selling Drupal and Joomla books.

You can build great websites. We can help! Join today and get access to 3118 training videos: Sign up now!

(+1) 678-830-2168
| | Contact us

Get free, weekly updates
from the OSTraining Newsletter


Welcome to training with a smile :) Created by friendly people all across North, Central and South America.