Hi Guys,
How to re-fomat text to columns buttons to be the as the tabs buttons as shown in the picture bellow:
Thank you,
allianceautoproducts
Goal: make the “View products” column buttons match the tab-style buttons—same size as the “View all” collection buttons and centered within each column.
Context and constraints:
Proposed solution (Shopify Debut theme):
Status:
Hi Guys,
How to re-fomat text to columns buttons to be the as the tabs buttons as shown in the picture bellow:
Thank you,
allianceautoproducts
What specific changes are you looking to make? Do you need help to change the color of the buttons to match color of the tabs button, or are you trying to change those paragraph columns into tabs and use the buttons to toggle them?
Hi,
Need to make all collections “view all” to be the same size of text to columnss “view products”, besides make text to columnss “view products” button in middle of the columns.
Thank you
Do you how to locate those buttons on the in the theme files?
I tired, but you can only change colors, not padding or margins
So if I understood you correctly you are trying to get something like this.
if that’s the case,
If you are able to access the code of the buttons, you can
Assuming you are using debut theme, this is how approach it:
{{- block.settings.button_label | escape -}}
change that to:
{{- block.settings.button_label | escape -}}
in your css file add this code:
.center-btn{
display:flex;
}
.center-btn .btn{
margin: auto;
}
if you don’t want to mess with your css file you could also use inline css for the new div and the button.
{{ 'collections.general.view_all' | t }} {{ collection_name }}
add the same classes as on button from the feature-columns.liquid file to make it look like
{{ 'collections.general.view_all' | t }} {{ collection_name }}
You can also add another specific class to adjust the margin & padding of this button without affecting the other buttons.
let me know if this helps