How to add spacing between custom lines on product page

Solved

How to add spacing between custom lines on product page

NinoB97
Explorer
63 0 26

Hi guys how do i add spacing between the lines shown on the image below? They are currently to close to each other and i want some spacing/room inbetween them!

 

https://auraliving.nl/products/flame-aroma-diffuser-deluxe-1

IMG_0360.jpeg

Accepted Solution (1)

BSSCommerce-HDL
Shopify Partner
2305 835 908

This is an accepted solution.

Hi @NinoB97

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 (max-width: 767px) {
    fieldset.js.product-form__input.product-form__input--swatch {
       margin-bottom: 30px !important;
    }
    
    product-form.product-form {
       margin-top: 35px !important;
    }
  }
</style>

 

Here is result: 

BSSCommerceHDL_0-1722785652888.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 4 (4)

BSSCommerce-HDL
Shopify Partner
2305 835 908

This is an accepted solution.

Hi @NinoB97

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 (max-width: 767px) {
    fieldset.js.product-form__input.product-form__input--swatch {
       margin-bottom: 30px !important;
    }
    
    product-form.product-form {
       margin-top: 35px !important;
    }
  }
</style>

 

Here is result: 

BSSCommerceHDL_0-1722785652888.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

NinoB97
Explorer
63 0 26

works 100%

theycallmemakka
Shopify Partner
1796 436 465

Hi @NinoB97 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>

<style>
.product-form__input--swatch {
    margin-bottom: 2rem!important;
}

product-form.product-form {
    margin-top: 3rem!important;
}
</style>

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

BSSCommerce-B2B
Shopify Partner
1972 564 566

Hi @NinoB97 , 

I have reviewed your requirement, you just need to edit css script and the issue will be resolved.  You can follow my instructions! 

 

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

BSSCommerceB2B_0-1722790438010.png

 

Step 2: Search for the file base.css. And add this code snippet to the end of the file.

@media only screen and (max-width: 768px) {
    .product-form__input {
       margin: 0 0 3rem !important;
    }
    .product__info-wrapper.grid__item.scroll-trigger.animate--slide-in product-form {
       margin-top: 4rem !important;
    }
}

In this step, You can change the value of margin/ margin-top as you want.

*Note: You need to select the correct class, starting from the parent class and moving to the child class, to avoid affecting other classes with the same name, such as "product-form".

Step 3: Save your code and reload this page.

The result will be: 

BSSCommerceB2B_1-1722790560617.png

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

 

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