Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #37559
    Matt M
    Participant

    I would like to show 2 products (or even 3) per row when viewed on a mobile device (rather than one). Currently, I can only change the number of products per row when the screen is larger.

    #37739
    Rad
    Moderator

    Hi Matt,

    Thank you for writing in!

    Could I request a url address that I can check? I could give you a css specific to you site. Which will enable it to show 2 to 3 columns on mobile device.

    And which mobile devices you’re targeting? To be more specific what screen size?

    Thank you.

    #38201
    Matt M
    Participant

    I am working on livefitapparel.net, but it isn’t live right now. I am using a maintenance mode type plugin.

    It looks like 480px width is where it switches over to 1 product per row currently. I am not targeting any specific mobile device, but I imagine the iPhone sized screen is about the smallest we would be worried about.

    So basically, anytime the theme would default to 1 product per row, I want that to be 2 products per row (or 3).

    #38363
    Support
    Member

    Hi there!

    Thank you for using the theme!

    Please use this on Customizer > Custom > CSS:

    @media (max-width: 480px) {
    .woocommerce .cols-2 li.product, .woocommerce .cols-3 li.product, .woocommerce .cols-4 li.product, .woocommerce.columns-2 li.product, .woocommerce.columns-3 li.product, .woocommerce.columns-4 li.product {
    width: 48%;
    }
    }

    I hope that helps. Cheers!

    #38986
    Matt M
    Participant

    Works great! Thanks!

    #39188
    Support
    Member

    Glad it is working. Don’t hesitate to ask us if you have any questions. Cheers!

    #40290
    Jameson
    Participant

    That helped me too, thanks! Was afraid of necroposting, but this was just a few days ago, so.

    #40309
    Christian
    Moderator

    You’re welcome Jameson.

    #301485
    astratelli
    Participant

    Hi there,

    Would you please be able to help me do the opposite for my site? I am trying to get 1 product per row for my mobile site http://www.astratelli.com.

    Thanks!

    #301576
    Rupok
    Member

    Hello astratelli,

    I can see one product on mobile view for the first page. Let me know on which page you want the change. I’ll assist you to achieve that.

    Thanks

    #366731
    hawa2015
    Participant

    i need to see more then the current maximum of 4 colums – where can i change that value

    #366965
    Rad
    Moderator

    Hi there,

    You can try something like this, 5 column.

    .woocommerce .cols-2 li.product, .woocommerce .cols-3 li.product, .woocommerce .cols-4 li.product, .woocommerce.columns-2 li.product, .woocommerce.columns-3 li.product, .woocommerce.columns-4 li.product {
    width: 19%;
    }

    Single column is 100%, then divide it to 5, so 20%. But each column could have 1% margin then 19%.

    Cheers!

    #366976
    hawa2015
    Participant
    This reply has been marked as private.
    #366983
    hawa2015
    Participant

    ..this changes the width of each column but the column counter stays 4…

    #367101
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thank you.

  • <script> jQuery(function($){ $("#no-reply-37559 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>