Much space between buy indicators and stock pulse

Solved

Much space between buy indicators and stock pulse

TrendBlend
Trailblazer
342 0 35

Hello, for 1 product a lot of space shows in between the stock pulse and the buy indicators for just mobile phone.

URL much space: https://trendblend.eu/products/magcharge

IMG_3285.jpeg

IMG_3286.jpeg

shows okay on all other products.

Accepted Solution (1)

Moeed
Shopify Partner
7346 1992 2430

This is an accepted solution.

Hey @TrendBlend 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

{% if product.handle == 'magcharge' %}
<style>
@media screen and (max-width: 767px) {
.product .product__media-wrapper .mobile_content .instock-pulse {
    margin-top: -15px !important;
}
}
</style>
{% endif %}

RESULT:

Moeed_0-1728464172054.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 2 (2)

Moeed
Shopify Partner
7346 1992 2430

This is an accepted solution.

Hey @TrendBlend 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

{% if product.handle == 'magcharge' %}
<style>
@media screen and (max-width: 767px) {
.product .product__media-wrapper .mobile_content .instock-pulse {
    margin-top: -15px !important;
}
}
</style>
{% endif %}

RESULT:

Moeed_0-1728464172054.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


rajweb
Shopify Partner
757 65 139

Hey @TrendBlend ,

To resolve the extra space between the stock pulse and buy indicators on mobile, you can adjust the CSS for mobile views to reduce the margin or padding in that section. You can add a media query that targets mobile devices and removes the unnecessary space.

Here's an example of how you can modify the CSS:

 

@media only screen and (max-width: 767px) {
  .sold-count.shopify-payment-button,
  .view-count.shopify-payment-button {
    margin-top: 5px; /* Adjust this value as needed */
    margin-bottom: 5px; /* Adjust this value as needed */
  }
}

 

You can place this CSS in your theme's stylesheet (usually found under Assets > theme.css or theme.scss.liquid) or directly in your custom CSS section in the Shopify theme editor.

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

Best Regard,

Rajat Sharma

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Dash Drop App: https://apps.shopify.com/dash-drop-delivery
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev

ProductifyGroups App:  Shopify App - Product Variants