• nic

    (@nicblogs2)


    I’d like to be able to show two columns on mobile. At the moment it shows stacked as a single column on mobile.

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

Viewing 1 replies (of 1 total)
  • Yani

    (@yaniiliev)

    Hi @nic,

    Thanks for reaching out! By default, the Query Loop stacks to a single column on screens below 782px to keep the content readable on smaller devices.

    If you’d like to show two columns on mobile, you can add this custom CSS snippet via Appearance > Editor > Styles > Additional CSS (or a child theme):

    @media only screen and (max-width: 781px) {
      .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    If you only want this on a specific page, you can add a custom CSS class to the Query Loop block (under Advanced > Additional CSS class(es)), for example mobile-two-cols, and then target it like this:

    @media only screen and (max-width: 781px) {
      .mobile-two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    Let me know if that helps!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.