[Skip to main content](#vessel-content)

#   Customizing Responsive Carousel

##

- **[jtquinto](/forum/user/31780-jtquinto "View jtquinto's Profile")**
- [![jtquinto's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31780-jtquinto "View jtquinto's Profile") Topic Author
- [ Offline](/forum/user/31780-jtquinto)

Less More

- Posts: 30
- Thank you received: 2
-
-

8 years 5 months ago [\#293384](#293384) by [jtquinto](/forum/user/31780-jtquinto "View jtquinto's Profile")  *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#293384 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")* was created by *[jtquinto](/forum/user/31780-jtquinto "View jtquinto's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8

I'm trying to slightly change how the carousel displays its items.

Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).

However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra "spaces" when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.

How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?

The following user(s) said Thank You: [oxido](/forum/user/29793-oxido "View oxido's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

8 years 5 months ago [\#293397](#293397) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#293397 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

Hi,

The best is to edit the file "carousel" of the view "product" via the menu Display&gt;Views.
There, you want to change that lin which controls how the carousel behaves for the different resolutions: Code:

$options['responsive'] = '{0:{items:1, slideBy:1}, 768:{items:2, slideBy:'.$slideByFor2.'}, 992:{items:'.$products.'}}';

The simplest I guess would be to change that code to: Code:

$options['responsive'] = '{0:{items:2, slideBy:'.$slideByFor2.'}, 992:{items:'.$products.'}}';

The following user(s) said Thank You: [oxido](/forum/user/29793-oxido "View oxido's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[olstadesigns](/forum/user/39848-olstadesigns "View olstadesigns's Profile")**
- [![olstadesigns's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39848.jpg)](/forum/user/39848-olstadesigns "View olstadesigns's Profile")
- [ Offline](/forum/user/39848-olstadesigns)

Less More

- Posts: 56
- Thank you received: 9
-
- [](https://olstadesigns.com.au)
-

8 years 2 months ago [\#297194](#297194) by [olstadesigns](/forum/user/39848-olstadesigns "View olstadesigns's Profile")  Replied by *[olstadesigns](/forum/user/39848-olstadesigns "View olstadesigns's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#297194 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

Hi Nicholas,

For some reason the carousel doesn't work in responsive mode for me. Why would this be? [ navlife.com.au](https://navlife.com.au)

---

I can't change the direction of the wind, but I can adjust my sails to always reach my destination.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

8 years 2 months ago [\#297197](#297197) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#297197 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

Hi,

It seems that you're using the legacy carousel system of HikaShop 2 there. And it isn't responsive.
Check that you have the "carousel legacy" setting turned off in the HikaShop configuration in order to use the new carousel system which is responsive.

The following user(s) said Thank You: [olstadesigns](/forum/user/39848-olstadesigns "View olstadesigns's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[olstadesigns](/forum/user/39848-olstadesigns "View olstadesigns's Profile")**
- [![olstadesigns's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39848.jpg)](/forum/user/39848-olstadesigns "View olstadesigns's Profile")
- [ Offline](/forum/user/39848-olstadesigns)

Less More

- Posts: 56
- Thank you received: 9
-
- [](https://olstadesigns.com.au)
-

8 years 2 months ago [\#297224](#297224) by [olstadesigns](/forum/user/39848-olstadesigns "View olstadesigns's Profile")  Replied by *[olstadesigns](/forum/user/39848-olstadesigns "View olstadesigns's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#297224 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

Thank you Nicolas, this solve the issue.

---

I can't change the direction of the wind, but I can adjust my sails to always reach my destination.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile")
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

5 years 11 months ago [\#326890](#326890) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#326890 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

hi

i need to make my carousel display 2 columns on mobile

i saw this code and is different with the one posted here
Code:

if($options['dots']) { $options['responsive'] = '{0:{items:1, slideBy:1, dotsEach: 1}, 768:{items:2, slideBy:'.$slideByFor2.', dotsEach: '.$slideByFor2.'}, 992:{items:'.$products.', dotsEach: '.$products.'}}'; } else { $options['responsive'] = '{0:{items:1, slideBy:1}, 768:{items:2, slideBy:'.$slideByFor2.'}, 992:{items:'.$products.'}}'; }

what should i edit here?

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

5 years 11 months ago [\#326894](#326894) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#326894 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

Hi,

You still have the line: Code:

$options['responsive'] = '{0:{items:1, slideBy:1}, 768:{items:2, slideBy:'.$slideByFor2.'}, 992:{items:'.$products.'}}';

there, that you can still change to: Code:

$options['responsive'] = '{0:{items:2, slideBy:'.$slideByFor2.'}, 992:{items:'.$products.'}}';

So it hasn't changed.

The following user(s) said Thank You: [oxido](/forum/user/29793-oxido "View oxido's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Petike1007](/forum/user/12229-petike1007 "View Petike1007's Profile")**
- [![Petike1007's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12229-petike1007 "View Petike1007's Profile")
- [ Offline](/forum/user/12229-petike1007)

Less More

- Posts: 75
- Thank you received: 4
-
-

2 years 9 months ago [\#359336](#359336) by [Petike1007](/forum/user/12229-petike1007 "View Petike1007's Profile")  Replied by *[Petike1007](/forum/user/12229-petike1007 "View Petike1007's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#359336 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

I have the same issue, trying to show 3 in a row on mobile and 4 on tablet, 6 on desktop.
When i check with the display view files i can see there is a category / carousel.php -&gt; category / carousel_swiper.php -&gt; category / listing_slider_horizontal.php layout.
Not sure which one I should override, tried them, but nothing changed. (ver 5.0.2)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 9 months ago [\#359339](#359339) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#359339 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

Hi,

With the new Swiper carousel introduced recently, it's indeed in the carousel_swiper view file that you want to make the change.
And the code to change there is: Code:

$options["breakpoints"] = "{0:{slidesPerView:1},768:{slidesPerView:" . $slideByFor2 . ", spaceBetween:" . $spaceBetween . "},992:{slidesPerView:" . $products . ", spaceBetween:" . $spaceBetween . "}}";

Instead, you could have: Code:

$options["breakpoints"] = "{0:{slidesPerView:2, spaceBetween:" . $spaceBetween . "},992:{slidesPerView:" . $products . ", spaceBetween:" . $spaceBetween . "}}";

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Petike1007](/forum/user/12229-petike1007 "View Petike1007's Profile")**
- [![Petike1007's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12229-petike1007 "View Petike1007's Profile")
- [ Offline](/forum/user/12229-petike1007)

Less More

- Posts: 75
- Thank you received: 4
-
-

2 years 9 months ago [\#359349](#359349) by [Petike1007](/forum/user/12229-petike1007 "View Petike1007's Profile")  Replied by *[Petike1007](/forum/user/12229-petike1007 "View Petike1007's Profile")* on topic *[Customizing Responsive Carousel](/forum/43-carousel-slider/894868-customizing-responsive-carousel#359349 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  I'm trying to slightly change how the carousel displays its items.  Basically, the responsive features of the module works for us, for the most part. It properly shows the correct number of items in different screen sizes, and scrolls properly through them (3-in-a-row for desktops; 2-in-a-row for tablets/medium screens; 1 in small screens).  However, we'd like to change the number of items shown in small screens to 2-in-a-row. I was able to edit the CSS so it shows 2-in-a-row (changed the carousel item and carousel stage elements), but that ended up having extra &quot;spaces&quot; when scrolling through the carousel pages. I think this is from the scroll buttons still expecting the stage to be in the original width.  How do I properly customize the carousel module to properly reflect the 2-in-a-row behavior in small displays?")*

Thanks, I have tried to change the slidesperview option but looks like it doesn't work without the spacebetween.

Works now

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQzLWNhcm91c2VsLXNsaWRlci84OTQ4NjgtY3VzdG9taXppbmctcmVzcG9uc2l2ZS1jYXJvdXNlbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.081 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
