Shopify themes, liquid, logos, and UX
Hello. I am using Stiletto theme and would like to use multiple button blocks in Rich Text but there is a 2 button limit.
I have found the code in rich-text.liquid:
"type": "button",
"name": "t:sections.rich_text.blocks.button.name",
"limit": 2,
"settings": [
{
"id": "link",
"type": "url",
"label": "t:sections.rich_text.blocks.button.settings.link.label"
},
{
"id": "link_text",
"type": "text",
"label": "t:sections.rich_text.blocks.button.settings.link_text.label",
"default": "Read more"
},
{
"type": "select",
"id": "button_style",
"label": "t:shared.settings.button_style.label",
"options": [
{
"value": "btn--primary",
"label": "t:shared.settings.button_style.option_solid"
},
{
"value": "btn--secondary",
"label": "t:shared.settings.button_style.option_outline"
},
{
"value": "btn--callout",
"label": "t:shared.settings.button_style.option_text"
}
The problem is that I have tried changing the button limit from "2" to "5", which does work. However, this squashes the button additional blocks together with no margin spacing between the buttons. Any suggestions how to fix this and separate them?
They have the limit because they have styling for either one or two buttons. If you increase the limit then you’d have to add custom/extend the current styles for the buttons.
Oh okay. Do you know how to extend the current styles?
Yes that can be done. But I’ll need collaborator access to your store for just the theme so I can update the css to accommodate the 5 buttons.
Okay thank you. Here is the collaborator request code: 4845
Please delete this message here and send it to my DM and also add your store url to it, the one that looks like mystore.myshopify.com
Hello there. I messaged you but did not get a reply?
User | RANK |
---|---|
207 | |
178 | |
63 | |
51 | |
47 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023