Okay
  Public Ticket #2420114
Posts Responsive
Closed

Comments

  • serif started the conversation

    Hello,

    Is there a way for the posts section to display 4 columns in the tablet and mobile version? At the moment, I've have it set to 4 columns however it only displays 2 columns for tablet and 1 column for mobile. 

    Thanks!

  •  675
    Neuron replied

    Hi Serif,

    Please check the following style

    // Tablet
    @media (max-width: 1024px) {
        .masonry .selector  {
            max-width: 33.333%;
            flex: 0 0 33.333%;
        }
    } // Phone
    @media (max-width: 768px) {
        .masonry .selector  {
            max-width: 50%;
            flex: 0 0 50%;
        }
    }

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  •   serif replied privately
  •  675
    Neuron replied

    Hi,

    It seems like you've found a great solution to that. https://prnt.sc/sqpqq2

    Do you still need the CSS?

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • serif replied

    Hi,

    It would be great if you could still let me know the css so that I'll have more options :)

    Thanks!


  •  675
    Neuron replied

    Hi Serif,

    I am sorry for the late reply.

    Sure, here's the Custom CSS, this one is tested and will work without problem.

    @media (max-width: 1200px) {
        .l-woocommerce-wrapper .masonry .selector {
            flex: 0 0 33.33333% !important;
            max-width: 33.33333% !important;
        }
    } @media (max-width: 768px) {
        .l-woocommerce-wrapper .masonry .selector {
            flex: 0 0 50% !important;
            max-width: 50% !important;
        }
    }

    33% means 3 columns 50% 2 columns and so on.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.