• Resolved helen2022

    (@helen2022)


    Hello, I am creating a lot of gallery pages using columns. At the moment I am mostly not using the ‘stack on mobile’ option for the columns but is there a way I can amend this option so it makes the columns stack on a phone but not on a tablet? Thanks!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @helen2022,

    Thanks for choosing Neve!

    The columns will not be stacked on tablets if the “stack on mobile” option is enabled, this is the default behaviour.

    Have a nice day!

    Thread Starter helen2022

    (@helen2022)

    Hmmm, the columns are most definitely stacked on my tablet (Samsung Galaxy Tab S5e) when viewed in portrait mode. I think somewhere there is a setting which defines the screen width for ‘mobile’ and it needs adjusting?

    Hi @helen2022!

    You can add the code below in the Additional CSS section within the Customizer to overwrite the maximum width for the devices on which the columns are not to be stacked. Feel free to change the max-width value as you please.

    @media(max-width: 1200px){
        .wp-block-columns {
            flex-wrap: nowrap !important;
        }
    }

    Have a nice day!

    Thread Starter helen2022

    (@helen2022)

    Hi Lucia,
    Thank you for your help! The following code has given me the result I wanted, which was wrapping on a phone but not on a tablet:

    @media(min-width: 700px){
        .wp-block-columns {
            flex-wrap: nowrap !important;
        }
    }
    Kush

    (@kushnamdev)

    Hey @helen2022,

    We are glad to hear that the issue got solved, Thanks for the confirmation. So, if you don’t have any further questions Can you please mark this as Resolved ?

    Have a great day

    Thread Starter helen2022

    (@helen2022)

    Thanks all!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Stacking columns on mobile’ is closed to new replies.