How can I hide a product variation from a template?

Hi, I created a product template for a specific product. I would like to hide the variation brand, and jus keep the variation pack. How can I do this?

https://isatwelding.myshopify.com/products/variations?_pos=1&_sid=b3bba015c&_ss=r

password 1

Thanks for your inputs.

If you’re only using this for a single product, then I would simply remove the code from your theme files. Are you using shopify 2.0 with json files?

It is, this is the .json of this product theme, but if I want to keep the variation pack, and only remove brand, what should I delete?

{
“sections”: {
“1649081791eb3a0c3d”: {
“type”: “d_promo-banner”,
“disabled”: true,
“blocks”: {
“10fdd41f-2315-41d6-9635-dd0c3a78ad9c”: {
“type”: “heading”,
“settings”: {
“heading”: “Get an Extra $10 off”
}
},
“1801d392-ba0e-494e-8b63-0ccbceb07137”: {
“type”: “text”,
“settings”: {
“text”: “When you spend $100 or more on clearance items”
}
},
“29095ef3-e037-48ac-a925-11a52cbedbd1”: {
“type”: “button”,
“settings”: {
“mobile_hidden”: false,
“label”: “Use Code: GET10”,
“style”: “normal”,
“custom_colors”: false,
“bg_color”: “#000000”,
“text_color”: “#ffffff
}
}
},
“block_order”: [
“10fdd41f-2315-41d6-9635-dd0c3a78ad9c”,
“1801d392-ba0e-494e-8b63-0ccbceb07137”,
“29095ef3-e037-48ac-a925-11a52cbedbd1”
],
“settings”: {
“bg_type”: “image”,
“link”: “”,
“text_color”: “#ffffff”,
“bg_color”: “#163340”,
“section_layout”: “full”,
“desktop_text_align”: “space-between”
}
},
“main”: {
“type”: “s_product”,
“blocks”: {
“title”: {
“type”: “title”,
“settings”: {
“size”: “md”,
“max_lines”: 3,
“prev_attach”: false
}
},
“price”: {
“type”: “price”,
“settings”: {
“show_savings”: true,
“show_taxes”: true,
“prev_attach”: false
}
},
“7a535365-d5ae-4e3a-a4fd-aba2a10fefbd”: {
“type”: “quantity_selector”,
“settings”: {
“input_type”: “dropdown”,
“prev_attach”: false
}
},
“7e37f69f-d0e7-4b32-801c-81c63db85c51”: {
“type”: “variant_selector”,
“settings”: {
“picker_type”: “dropdown”,
“color_swatches”: false,
“align_option_values”: true,
“show_stock_alert”: false,
“prev_attach”: false
}
},
“stock_alert”: {
“type”: “stock_alert”,
“disabled”: true,
“settings”: {
“show_stock_alert”: false,
“prev_attach”: false
}
},
“dabcb986-093f-4262-ab8a-50e5c7833b64”: {
“type”: “buy_with”,
“settings”: {
“meta_heading”: “Frequently Bought Together”,
“use_counter”: true,
“prev_attach”: false
}
},
“ed23eeb5-e377-4d5e-bf86-f019e6b9daad”: {
“type”: “collapsible_tab_question”,
“settings”: {
“heading”: “Ask a question”,
“icon”: “question”,
“prev_attach”: true
}
},
“buttons”: {
“type”: “buy_buttons”,
“settings”: {
“show_dynamic_checkout”: true,
“enable_stock_notifier”: true,
“prev_attach”: false
}
},
“f1fc54bb-bcf3-4359-98c1-c6983bf4615d”: {
“type”: “payment_methods”,
“settings”: {
“meta_heading”: “We Accept”,
“center”: false,
“prev_attach”: false
}
}
},
“block_order”: [
“title”,
“price”,
“7a535365-d5ae-4e3a-a4fd-aba2a10fefbd”,
“7e37f69f-d0e7-4b32-801c-81c63db85c51”,
“stock_alert”,
“dabcb986-093f-4262-ab8a-50e5c7833b64”,
“ed23eeb5-e377-4d5e-bf86-f019e6b9daad”,
“buttons”,
“f1fc54bb-bcf3-4359-98c1-c6983bf4615d”
],
“settings”: {
“gallery_width”: 57,
“slideshow_zoom”: true
}
},
“1655475777b1187173”: {
“type”: “d_image-with-text”,
“disabled”: true,
“blocks”: {
“16554757779f91ab44-0”: {
“type”: “subheading”,
“settings”: {
“subheading”: “Subheading”
}
},
“16554757779f91ab44-1”: {
“type”: “heading”,
“settings”: {
“heading”: “Image with text heading”
}
},
“16554757779f91ab44-2”: {
“type”: “text”,
“settings”: {
“text”: “

Give customers details about the hero image or content on the template.</p>”
}
},
“16554757779f91ab44-3”: {
“type”: “buttons”,
“settings”: {
“f_button_label”: “Shop now”,
“f_button_link”: “”,
“f_button_style”: “normal”,
“f_button_custom_colors”: false,
“f_button_text_color”: “#ffffff”,
“f_button_bg_color”: “#000000
}
}
},
“block_order”: [
“16554757779f91ab44-0”,
“16554757779f91ab44-1”,
“16554757779f91ab44-2”,
“16554757779f91ab44-3”
],
“settings”: {
“section_layout”: “container”,
“image_size”: “lg”,
“image_width”: 50,
“image_position”: “left”,
“text_size”: “lg”,
“text_color”: “#ffffff”,
“bg_color”: “#163340
}
},
“16554757745dec0af9”: {
“type”: “d_product-recommendations”,
“settings”: {
“heading”: “You May Also Need”,
“subheading”: “”,
“section_layout”: “container”,
“products_limit”: 7,
“items_per_view”: 4,
“enable_loop”: true,
“enable_pagination”: false
}
},
“165547578589bc64a7”: {
“type”: “d_gallery”,
“disabled”: true,
“blocks”: {
“16554757855da6121d-0”: {
“type”: “gallery_item”,
“settings”: {
“span”: “4”,
“image_size”: “md”,
“mobile_image_size”: “9x16”,
“link”: “”,
“image_overlay”: 0,
“heading”: “Gallery heading”,
“subheading”: “”,
“text”: “Give customers details about the banner image(s) or content on the template.”,
“size”: “md”,
“text_position”: “center-center”
}
},
“16554757855da6121d-1”: {
“type”: “gallery_item”,
“settings”: {
“span”: “4”,
“image_size”: “md”,
“mobile_image_size”: “9x16”,
“link”: “”,
“image_overlay”: 0,
“heading”: “Gallery heading”,
“subheading”: “”,
“text”: “Give customers details about the banner image(s) or content on the template.”,
“size”: “md”,
“text_position”: “center-center”
}
},
“9467c20c-42a0-4696-85d4-7a8913fe71fd”: {
“type”: “gallery_item”,
“settings”: {
“span”: “4”,
“image_size”: “md”,
“mobile_image_size”: “9x16”,
“link”: “”,
“image_overlay”: 0,
“heading”: “Gallery heading”,
“subheading”: “”,
“text”: “Give customers details about the banner image(s) or content on the template.”,
“size”: “md”,
“text_position”: “center-center”
}
}
},
“block_order”: [
“16554757855da6121d-0”,
“16554757855da6121d-1”,
“9467c20c-42a0-4696-85d4-7a8913fe71fd”
],
“settings”: {
“heading”: “Gallery”,
“subheading”: “”,
“show_frame”: false,
“subheading_position”: “before”,
“use_box”: false
}
}
},
“order”: [
“1649081791eb3a0c3d”,
“main”,
“1655475777b1187173”,
“16554757745dec0af9”,
“165547578589bc64a7”
]
}

Hi @urbantis ,

This is Victor from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/product-variant-selector.css>paste below code at the bottom of the

product-variant-selector.\#product-variant-selector.js-only > div:nth-child(2) {
    display:none !important;
}

Hope my answer will help you.

Best regards,

Victor | PageFly

Brilliant, thank you

Hey there,

What Victor said is the easiest solution. If you didn’t want to add more css, and have unused code in your template, then you could delete the section in the .liquid snippet being referenced. Though that would affect all of your products so you would need to create a special snippet/block for that template to use.

In other words, the various json templates you create, are all accessing the same snippets and simply applying different settings based on the template settings. To change the source code though would affect all of your templates. If you’re not too familiar with coding I’d just go with Victors suggestion.

I would suggest trying to put Victors css in the custom css within the editor/customizer > theme settings (left side bar, not the block level) and see if it works. Pretty sure that css is transferred over when updating your theme I believe, while the editing an actual css file is not and would require you to re input upon an update. Anyways hope that helps!