Removing space on product page under price

Solved

Removing space on product page under price

Franrulzok
New Member
18 0 0

Hi, thanks for your help! I am using Woodstock theme, my store is: https://leadingsolutions.co.nz/

 

I am trying to reduce the space between the price and the afterpay message on the product page so that they are a bit more cohesive but I can't figure out how to do it. See below.

 

Screenshot 2024-10-02 115922.jpg

Accepted Solution (1)

Tech_Coding
Shopify Partner
301 76 67

This is an accepted solution.

Hello @Franrulzok 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  div.shopify-block:has(square-placement) {
     margin-top: -26px !important;
  }
</style>

Tech_Coding_0-1727834833101.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

View solution in original post

Replies 3 (3)

PageFly-Richard
Shopify Partner
4661 1068 1725

Hi @Franrulzok 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
.product__info-wrapper .product__title + div {
    margin: 0;
}
.product__info-wrapper .product__tax, .product__info-wrapper .installment {
display: none;
}
div.shopify-block:has(square-placement){
margin-top:0;
}
</style>

PageFlyRichard_0-1727827101516.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

Franrulzok
New Member
18 0 0

Thanks for your reply. This just removes the space above the price (which I'm not as keen on) but the spacing above afterpay message is still there?Screenshot 2024-10-02 131959.png

Tech_Coding
Shopify Partner
301 76 67

This is an accepted solution.

Hello @Franrulzok 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  div.shopify-block:has(square-placement) {
     margin-top: -26px !important;
  }
</style>

Tech_Coding_0-1727834833101.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.