keep the same space between two lines even when i change the variant of the product

JADIS
Explorer
169 1 19

Good morning,


I would like the space to remain the same between "↑PRICE NEW‎ ‎ ‎ ‎ ↑PRICE ON OLD" and the price when I change the size variant with the variant selector below

Because for now look at how the space is reduced between the two

Capture.PNG

sdfsdf.PNG


Do you know how to do it please?

 

Theme: Dawn
Website: jadis-shop.com
password:rj


thanks in advance

 

 

  

Replies 8 (8)
ZestardTech
Shopify Expert
5300 950 1260

Hello There,

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

 

.product__tax.caption.rte {
padding-top: 10px!important;
}

 

ZestardTech_0-1696412722627.png

 

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
JADIS
Explorer
169 1 19

you just lowered the text, but you did not solve the problem of changing the location of the text when you change the size with the variant selector... what should I do please?

websensepro
Shopify Partner
700 95 98

Hi, @JADIS,

 

Follow These Steps.

Goto Online store > Assets > Edit code > find Base.css File and paste the code mentioned below.

 

.product__tax.caption.rte {
    padding-top: 10px;
}

 

result:

websensepro_0-1696415599020.png

 

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

 

Need a Shopify developer?
Hire us at websensepro.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
JADIS
Explorer
169 1 19

you just lowered the text, but you did not solve the problem of changing the location of the text when you change the size with the variant selector... what should I do please? 

websensepro
Shopify Partner
700 95 98

I will add a space not changing the text location and text size. this code fix your problem.

Need a Shopify developer?
Hire us at websensepro.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
JADIS
Explorer
169 1 19

I don't want to add a space, I just want the text not to move... do you know how to do it please?

syedsumaimaly
Explorer
147 16 17

Hi @JADIS 

Follow these Steps:

Go to Online Store  Edit Code Find theme.liquid file or base.css

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

.product__tax.caption.rte {
    padding-top: 10px;
}

RESULT:

syedsumaimaly_0-1696416534703.png

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

 

 

JADIS
Explorer
169 1 19

 you just lowered the text, but you did not solve the problem of changing the location of the text when you change the size with the variant selector... what should I do please?