How do I align this custom liquid in the center under the buy button?

How do I align this custom liquid in the center under the buy button?

Lucas1200
Excursionist
36 0 7

How do I get this custom section liquid aligned center under the buy buttons like the picture attached?

Can somebody help me?

My store id is: 2e208a.myshopify.com

Scherm­afbeelding 2024-09-27 om 20.55.39.png

Replies 10 (10)

Made4uo-Ribe
Shopify Partner
8250 1978 2426

Hi @Lucas1200 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

.ss-payment-list {
    width: 44rem;
}

 

And save. 

Result:

Made4uoRibe_0-1727471120818.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Lucas1200
Excursionist
36 0 7

For the text it works, but the icons stay left....

Scherm­afbeelding 2024-09-30 om 20.59.45.png

Made4uo-Ribe
Shopify Partner
8250 1978 2426

Yeah, but as I checked, it's not the code I provided. You changed 44rem to 65%, I used 44rem for the width because it is the length of the 'Add to Cart' button.

Made4uoRibe_0-1727724779686.png

Replace on this one so it will be responsive. 

 

 

.ss-payment-list {
    max-width: 44rem;
    width: 100%;
}

 

 

And Save. 

Result:

Screenshot 2024-09-30 202913.pngScreenshot 2024-09-30 202857.pngScreenshot 2024-09-30 202847.png

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Lucas1200
Excursionist
36 0 7

It still doesnt work, is there sometinh wrong with the style code of this section?

<style>
/*
Section styling
*/
.ss-payment-text {
width: 100%;
text-align: center;
margin: 0;
color: {{ section.settings.color }};
}

.ss-payment-list {
list-style: none;
display: flex;
flex-wrap:wrap;
justify-content:center;
padding: 0;
}
.ss-payment-item {
text-align: center;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
}
.ss-payment-icon {
display: flex;
justify-content: center;
margin-bottom: .5rem;
}
.ss-payment-icon svg {
max-width:{{ section.settings.icon_size }}px;
max-height: calc({{ section.settings.icon_size }}px * 0.66);
}

.ss-payment-icon img {
max-width:{{ section.settings.icon_size }}px;
max-height: calc({{ section.settings.icon_size }}px * 0.66);
margin: 0 10px;

}

.ss-payment-text {
margin-bottom: 3px;
font-size:{{section.settings.text_size}}px;
}

@media only screen and (max-width: 450px) {
.ss-payment-icon svg {
max-width:{{ section.settings.icon_size_mobile }}px;
max-height: calc({{ section.settings.icon_size_mobile }}px * 0.66);
}

.ss-payment-icon img {
max-width:{{ section.settings.icon_size_mobile }}px;
max-height: calc({{ section.settings.icon_size_mobile }}px * 0.66);
}
}

/*
Styles based on settings
*/
#ss-payment-list-{{ section.id }} {
{% unless section.settings.bg_color == 'rgba(0,0,0,0)' %}
background-color: {{ section.settings.bg_color }};
{% endunless %}
{% unless section.settings.color == 'rgba(0,0,0,0)' %}
color: {{ section.settings.color }};
{% endunless %}
padding-top: {{ section.settings.pt }}rem;
padding-bottom: {{ section.settings.pb }}rem;
margin-top: {{ section.settings.mt }}rem;
margin-bottom: {{ section.settings.mb }}rem;
}

</style>

BSSCommerce-HDL
Shopify Partner
2303 847 1061

Hi @Lucas1200

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

 

<style>
@media only screen and (min-width: 750px) {
    .ss-payment-list {
        width: 59% !important;
    }
}
</style>

 

 

Here is result: 

BSSCommerceHDL_0-1727485577032.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Lucas1200
Excursionist
36 0 7

For the text it works, but the icons stay left....

Scherm­afbeelding 2024-09-30 om 20.59.45.png

Rahul_dhiman
Shopify Partner
545 109 109

Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> section-main-product.css
add this code at the end of the file.

@media screen and (min-width: 750px) {
.ss-payment-list {
width: 59%;
}
}

result
17.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167
Lucas1200
Excursionist
36 0 7

For the text it works, but the icons stay left....

Scherm­afbeelding 2024-09-30 om 20.59.45.png

Rahul_dhiman
Shopify Partner
545 109 109

TRY this code:

Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the end of the file and save.

@media screen and (min-width: 750px) {
ul#ss-payment-list-template--19886100480346__ss_payment_icons_4y9ckC {
width: 59%;
}
}

result
7.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167
Lucas1200
Excursionist
36 0 7

It still doesn't work, is the style of this section wrong?
<style>
/*
Section styling
*/
.ss-payment-text {
width: 100%;
text-align: center;
margin: 0;
color: {{ section.settings.color }};
}

.ss-payment-list {
list-style: none;
display: flex;
flex-wrap:wrap;
justify-content:center;
padding: 0;
}
.ss-payment-item {
text-align: center;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
}
.ss-payment-icon {
display: flex;
justify-content: center;
margin-bottom: .5rem;
}
.ss-payment-icon svg {
max-width:{{ section.settings.icon_size }}px;
max-height: calc({{ section.settings.icon_size }}px * 0.66);
}

.ss-payment-icon img {
max-width:{{ section.settings.icon_size }}px;
max-height: calc({{ section.settings.icon_size }}px * 0.66);
margin: 0 10px;

}

.ss-payment-text {
margin-bottom: 3px;
font-size:{{section.settings.text_size}}px;
}

@media only screen and (max-width: 450px) {
.ss-payment-icon svg {
max-width:{{ section.settings.icon_size_mobile }}px;
max-height: calc({{ section.settings.icon_size_mobile }}px * 0.66);
}

.ss-payment-icon img {
max-width:{{ section.settings.icon_size_mobile }}px;
max-height: calc({{ section.settings.icon_size_mobile }}px * 0.66);
}
}

/*
Styles based on settings
*/
#ss-payment-list-{{ section.id }} {
{% unless section.settings.bg_color == 'rgba(0,0,0,0)' %}
background-color: {{ section.settings.bg_color }};
{% endunless %}
{% unless section.settings.color == 'rgba(0,0,0,0)' %}
color: {{ section.settings.color }};
{% endunless %}
padding-top: {{ section.settings.pt }}rem;
padding-bottom: {{ section.settings.pb }}rem;
margin-top: {{ section.settings.mt }}rem;
margin-bottom: {{ section.settings.mb }}rem;
}

</style>