Responsive columns using media queries

  • Posts: 2
  • Thank you received: 0
11 years 4 months ago #114194

Hi I am new to Hikashop and I am trying to create a product list layout using Rockettheme template.

I have been able to change listing_img_title.php to suit some of my needs but I can't work out how to get the template to go from 3 columns to 2 and to 1 depending on screen size. At the moment I shrinks the 3 columns then jumps to 1.

How can I use media queries to set the number of columns?

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #114251

Hi,

You can do the modifications in the frontend css file via the menu Configuration > Display > CSS
Use the @media tags to change the width of the columns when the width of the page is less than xx.

ex:
@media (max-width: 767px) {
.hikashop_products .row-fluid .span4 { width: 49% !important;}
}

Here is some documentation about the layout customization:
www.hikashop.com/fr/support/documentatio...ize-the-display.html

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

  • Posts: 2
  • Thank you received: 0
11 years 4 months ago #114364

Thanks Xavier, it works well.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum