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?
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025