Payment Logos Css

Solved

Payment Logos Css

erenelemm
Tourist
6 0 2

  How do I center the payment logos css that I added under the add to cart button?

Thanks

Ekran görüntüsü 2024-05-15 172127.png

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @erenelemm Please clear all my old code,

After insert this code to your file css : 

.custom-pm-center {
    display: flex;
    justify-content: center;
}

Next, Find file theme.liquid and Insert the below code at the bottom of the file -> Save

BssTechVenture_0-1715793598008.png

{% if template.name == 'product' %}
<script>
  let pm_visa = document.querySelector('svg[aria-labelledby="pi-visa"]');
  pm_visa.insertAdjacentHTML("beforebegin", "<div class='custom-pm-center'></div>");
  let custom_pm_center = document.querySelector('.custom-pm-center');
  let pm_list = document.querySelectorAll(".product__info-container svg[aria-labelledby]");
  pm_list.forEach((item) => {
    custom_pm_center.insertAdjacentElement("beforeend", item);
  });
</script>
{% endif %}

Here is result: 

BssTechVenture_1-1715793728135.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

View solution in original post

Replies 12 (12)

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @erenelemm , Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

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

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @erenelemm ,

You can try this code by following these steps:

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

BssTechVenture_1-1715788746159.png

 

Step 2: Search file base.css,  theme.css  or styles.css

BssTechVenture_2-1715788751139.png

 

Step 3: Insert the below code at the bottom of the file -> Save

.product__info-wrapper svg[aria-labelledby="pi-visa"] {
    margin-left: 35% !important;
}

 

Here is result: 

BssTechVenture_0-1715788716202.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

erenelemm
Tourist
6 0 2

Yes, it's fixed for the computer, but on my phone it's too far to the right

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @erenelemmCan you kindly share the details of your problem (screenshot/ record) and  with us?  What is the phone you use? We will check it and suggest you a solution if possible.

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

erenelemm
Tourist
6 0 2

WhatsApp Görsel 2024-05-15 saat 19.30.01_1f30e7f3.jpg

 my phone is Samsung S22

BSSCommerce-HDL
Shopify Partner
2305 848 1065

Hi @erenelemm Pls insert this code to your file css: 

@media only screen and (max-width: 600px) {
    .product__info-wrapper svg[aria-labelledby="pi-visa"] {
       margin-left: 28% !important;
    }
}

Here is result: 

BssTechVenture_0-1715791279096.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

erenelemm
Tourist
6 0 2

a little bit more to the left, but it's still not in the center. I think we are using the same theme as this veb site, can this place help you? https://easytrimmer.store/products/easy-trimmer%E2%84%A2-sac-kirik-onarici

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @erenelemm Please clear all my old code,

After insert this code to your file css : 

.custom-pm-center {
    display: flex;
    justify-content: center;
}

Next, Find file theme.liquid and Insert the below code at the bottom of the file -> Save

BssTechVenture_0-1715793598008.png

{% if template.name == 'product' %}
<script>
  let pm_visa = document.querySelector('svg[aria-labelledby="pi-visa"]');
  pm_visa.insertAdjacentHTML("beforebegin", "<div class='custom-pm-center'></div>");
  let custom_pm_center = document.querySelector('.custom-pm-center');
  let pm_list = document.querySelectorAll(".product__info-container svg[aria-labelledby]");
  pm_list.forEach((item) => {
    custom_pm_center.insertAdjacentElement("beforeend", item);
  });
</script>
{% endif %}

Here is result: 

BssTechVenture_1-1715793728135.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

erenelemm
Tourist
6 0 2

yes it works thank you so muchh ❤️

BSSCommerce-HDL
Shopify Partner
2305 848 1065

@erenelemmWe're happy to see that our suggestion helped you solve the issue 😍😍

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

Dirk
Shopify Staff
2428 259 543

Hey, @erenelemm 

 

I'm confident one of our Shopify experts would be able to accomplish this at a reasonable price. Just wanted to share this as an option in case you are unable to find a coding solution in your thread.

 

If there is anything else I can help you with, please let me know.

Dirk | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog