Responsive Product Slider

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #120654

-- url of the page with the problem -- : 181.224.158.65/~bylongco/
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Chrome & Firefox

Hi,

I am trying to get the product slider (Here) responsive but not luck using max-width etc.

Is it possible to have the slider responsive?

Thanks in advance for any tips.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 10 months ago #120658

Hi there,

Considering how the system is made this is impossible.
We basically use Jquery to change the margin or the div containing the product. This margin is determined in php through Hikashop so we can't really change it. However in your case I can see two possibilities:

1 - You can add a css property on hikashop_main_slider_hikashop_category_information_module_125 like width:100%, it should give something acceptable, give it a try.
2 - The second solution is a little bit longer and not very clean but you could create multiple slider and hide it display it using css rules and @media, so if the windows is small you display your small slider.

Please Log in or Create an account to join the conversation.

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #120663

Thanks Eliot, thats it!

But I had to combine both so it resizies down to a certain size, then is hidden when a phone is detected.

Brilliant, thanks!


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

Time to create page: 0.046 seconds
Powered by Kunena Forum