Hello,
I’m trying to have the multicolumn on mobile to be 2, side by side, instead of 1 stacked on top of each other. Is there a way to do this?
Hello,
I’m trying to have the multicolumn on mobile to be 2, side by side, instead of 1 stacked on top of each other. Is there a way to do this?
Symmetry Theme is what we are using
Do you mean like this?
If it is try this one.
@media only screen and (max-width: 767px){
.flexible-layout.flexible-layout--variable-columns.flexible-layout--columns-6.align-center {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(3, 1fr);
}
}
that worked. Thanks!
Hi,
That worked, but when I have more than 6 column items, it reverts back to 1 column. Also, when I add a new column set in Shopify, it doesn’t apply to it. Could you help me fix this?
The code that I provide is only working on that design when I work out. But when you change it, it would need another codes.
Try this one again.
Same Instruction.
@media only screen and (max-width: 767px){
.flexible-layout, .fixed-layout {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: auto;
}
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
That worked thank you!
Hello, sorry again. It seems that the code made the whole page 2 columns for mobile. Is there a way to edit the code for columns only?
{%- if block.settings.image != blank -%}
{%- render ‘responsive-image’, image: block.settings.image -%}
{%- else -%}
{%- if block.settings.link != blank -%}{% endif -%}
{% if block.settings.title != blank %}
{% if block.settings.text != blank %}
{% if block.settings.button_label != blank %}
{% endif %}{% schema %}
{
“name”: “Multi-column”,
“class”: “section-multi-column”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Multi-column”
},
{
“type”: “select”,
“id”: “text_alignment”,
“label”: “Text alignment”,
“options”: [
{
“value”: “left”,
“label”: “Left”
},
{
“value”: “center”,
“label”: “Center”
},
{
“value”: “right”,
“label”: “Right”
}
],
“default”: “center”
},
{
“type”: “select”,
“id”: “button_style”,
“label”: “Button style”,
“default”: “primary”,
“options”: [
{
“label”: “Button - primary”,
“value”: “primary”
},
{
“label”: “Button - secondary”,
“value”: “secondary”
},
{
“label”: “Link”,
“value”: “link”
}
]
},
{
“id”: “use_alt_bg”,
“type”: “checkbox”,
“label”: “Use alternate section color”,
“default”: false
}
],
“blocks”: [
{
“type”: “text_block”,
“name”: “Column”,
“settings”: [
{
“id”: “enable_image”,
“type”: “checkbox”,
“label”: “Enable image”,
“default”: true
},
{
“type”: “image_picker”,
“id”: “image”,
“label”: “Image”
},
{
“type”: “range”,
“id”: “image_width”,
“min”: 60,
“max”: 700,
“step”: 10,
“label”: “Image width”,
“unit”: “px”,
“default”: 700
},
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Add a title or tagline”
},
{
“type”: “richtext”,
“id”: “text”,
“label”: “Text”,
“default”: “
Share blog posts, products, or promotions with your customers. Use this text to describe products, share details on availability and style, or as a space to display recent reviews or FAQs.
”