Title: Slider Width issue
Last modified: August 20, 2016

---

# Slider Width issue

 *  Resolved [dycent](https://wordpress.org/support/users/dycent/)
 * (@dycent)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slider-width-issue/)
 * Not sure if this has been covered before …
 * Issue: I stretched the width of the slider to 600-900 and I have multiple images
   in the slider however, I am only able to see 1 image regardless of how far or
   short I stretch it. Is there a way to show more then just one image in the slider
   without pressing the arrow to slide them over?
 * cSlider version: 2.4.2
 * [http://wordpress.org/extend/plugins/cslider/](http://wordpress.org/extend/plugins/cslider/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [dycent](https://wordpress.org/support/users/dycent/)
 * (@dycent)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slider-width-issue/#post-3518318)
 * on a second thought its not really a width issue but more of a photo issue
 * -you can view here.. & if you notice only 1 photo is shown, I would like at least
   6 photos to be shown before having to scroll… of course I only have 4 loaded 
   but even with a width of 300 it still only shows 1 image.
 * [http://dyceentertainment.com/designs/](http://dyceentertainment.com/designs/)
 *  Thread Starter [dycent](https://wordpress.org/support/users/dycent/)
 * (@dycent)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slider-width-issue/#post-3518353)
 * Not sure why I was racking my brain, but there is a simple solution for this…“
   press spacebar duh” …
 * remove the `[slide]` code between photos and just leave empty space.
 * For example: `[cSlider]`“photo” “photo” “photo” `[/cSlider]`
 * Simply Creating “space” between the photos as much as you like will show all 
   photos under 1 bullet…and pressing the arrow in the direction will scroll the
   gallery, just make sure you have infinite loop checked in the c slider settings
   so it will go back to the start.
 * Also I was searching the net for this and couldn’t find it here but for anyone
   who wants to use lightbox with there photos so they don’t open in a full window
   or in a new window you have to do download lightbox 2.51 just search plugins 
   and install then you can do 2 things.
 * For individual photos use this “text” code at the end of your photo link:
    `<
   a href="your_image.jpg" rel="lightbox" title="this is a caption">`
 * If you just want to save the time of doing each image and just use light box 
   for all images, go to your editor and look for functions.php and place this in
   the body.
 *     ```
       }
   
       add_filter('the_content', 'my_addlightboxrel');
       function my_addlightboxrel($content) {
              global $post;
              $pattern ="/<a(.*?)href=('|\")(.*?).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>/i";
              $replacement = '<a$1href=$2$3.$4$5 rel="lightbox" title="'.$post->image_title.'"$6>';
              $content = preg_replace($pattern, $replacement, $content);
              return $content;
       }
       ```
   
 * THISE PART OF THE CODE CAN BE MODIFIED AT YOUR CHOICE WHAT IT DOES IS PLACE AN
   TEXT TITLE AT THE END OF THE PHOTO, IF YOU READ IT SAYS “IMAGE_TITLE. ” YOU CAN
   DELETE THIS OR PLACE YOUR OWN TITLE :NOTE!!! EACH PHOTO WILL HAVE THAT POST OR
   PAGE TITLE.
 * `rel="lightbox" title="'.$post->image_title.'"$6>';`
 * HOPE THIS SAVES YOU THE TIME I COULD HAVE SAVED.
 *  Thread Starter [dycent](https://wordpress.org/support/users/dycent/)
 * (@dycent)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slider-width-issue/#post-3518372)
 * PS. In my use the default image count is 5. So after 5 images just use the `[
   slide]` code and cslider will create an 2nd bullet.
 *  Thread Starter [dycent](https://wordpress.org/support/users/dycent/)
 * (@dycent)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/slider-width-issue/#post-3518379)
 * Correction
 * 1200 width fill fit 7 images
 * 900 width will fit: 5 images
 * 600 – maybe 3
 * 300 – maybe 1

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Slider Width issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cslider_eeeeed.svg)
 * [cSlider](https://wordpress.org/plugins/cslider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cslider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cslider/)
 * [Active Topics](https://wordpress.org/support/plugin/cslider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cslider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cslider/reviews/)

 * 4 replies
 * 1 participant
 * Last reply from: [dycent](https://wordpress.org/support/users/dycent/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/slider-width-issue/#post-3518379)
 * Status: resolved