How to reduce these spaces?

Solved

How to reduce these spaces?

Reyan
Tourist
12 0 2

Reyan_0-1729871304775.png

 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
8806 2109 2585

This is an accepted solution.

Please, replace with this code. 

 

safe-sticky.product-info .product-info__block-item:is([data-block-type="title"], 
safe-sticky.product-info [data-block-type="price"], 
safe-sticky.product-info [data-block-type="description"],
safe-sticky.product-info [data-block-type="inventory"], 
safe-sticky.product-info [data-block-type="variant-picker"]) {
      margin-top: 0rem;
      margin-bottom: 0rem;
}

 

And Save. 

Result:

Made4uoRibe_0-1729891041201.png

 

 

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.

View solution in original post

Replies 7 (7)

BSSCommerce-B2B
Shopify Partner
1954 562 561

@Reyan, could you kindly share yuour store url?

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

Made4uo-Ribe
Shopify Partner
8806 2109 2585

Hi @Reyan 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.product-info__block-item:is([data-block-type="title"], [data-block-type="price"], 
[data-block-type="description"], [data-block-type="inventory"], [data-block-type="variant-picker"]) {
    margin-top: 0.5rem;
}

 

  • And Save.
  • result:
  • Made4uoRibe_0-1729874825007.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.
Reyan
Tourist
12 0 2

I applied this but why i am not getting results like yours 

Reyan_0-1729875436266.png

Reyan_1-1729875451081.png

 

 

 

Made4uo-Ribe
Shopify Partner
8806 2109 2585

My bad. Please change your code to below

 

 

@media screen and (min-width: 700px) {
safe-sticky.product-info .product-info__block-item:is([data-block-type="title"], 
safe-sticky.product-info [data-block-type="price"], 
safe-sticky.product-info [data-block-type="description"],
safe-sticky.product-info [data-block-type="inventory"], 
safe-sticky.product-info [data-block-type="variant-picker"]) {
      margin-top: 0rem;
      margin-bottom: 0rem;
    }
}

 

 

Result

Made4uoRibe_0-1729883921024.png

 

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.
Reyan
Tourist
12 0 2

Great Worked on Desktop But didnt work in mobile.

Made4uo-Ribe
Shopify Partner
8806 2109 2585

This is an accepted solution.

Please, replace with this code. 

 

safe-sticky.product-info .product-info__block-item:is([data-block-type="title"], 
safe-sticky.product-info [data-block-type="price"], 
safe-sticky.product-info [data-block-type="description"],
safe-sticky.product-info [data-block-type="inventory"], 
safe-sticky.product-info [data-block-type="variant-picker"]) {
      margin-top: 0rem;
      margin-bottom: 0rem;
}

 

And Save. 

Result:

Made4uoRibe_0-1729891041201.png

 

 

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.