Re: Text alignment on Refresh theme mobile view

Solved

Text alignment on Refresh theme mobile view

rdyup
Tourist
9 0 2

I am having issues keeping my sales price tags aligned straight on my home page and featured collections page. What's The Solution? I've attached some pictures below for reference.

 

on mobile view. Whats the solution?1C98C601-B1FF-4867-883E-C8D0C1955927.png98A37853-4841-46B3-9FBB-32804F3EBF61.pngFAE649C4-F1AE-442D-94F5-B9D8C1E37FB1.pngE1A81116-BDE0-47E7-81E2-41D10EBE0F96.png

Accepted Solution (1)
BSS-Commerce
Shopify Partner
3478 465 556

This is an accepted solution.

Hi @rdyup 

Please find this code in the file component-card.css:

.card__heading {
  margin-top: 0;
  margin-bottom: 0;
}

Please replace the code below with the code above:

.card__heading {
  min-height: 30px;
  max-height: 50px;
  margin-top: 0;
  margin-bottom: 0;
}

 

The above code will add height to the product title, which helps your price tags to align. You can adjust the min-height and max-height as you want.

 

I hope the above suggestions can help you.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 12 (12)

GemPages
Shopify Partner
5625 1262 1282

Hello @rdyup 

 

To provide you with the most precise solution in this case, could you please share your page URL ( with pass if your store password is enabled )?

 

Thank you and hope to hear from you.
Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
rdyup
Tourist
9 0 2

The store url is https://rdyup.co and the password is aushey. Thank you for looking into the alignment issue. Please note the store isn’t ready for placing orders.

BSS-Commerce
Shopify Partner
3478 465 556

Hi @rdyup 

To change the style as you want, you just need to change the CSS for your site. You can do it in the following way:

- Go to Online Store > Theme > Edit code

view (48).png

- Then go to the file component-price.css and find the code below:

.price--on-sale .price__sale {
  display: initial;
  flex-direction: row;
  flex-wrap: wrap;
}

- Then replace them with the code below and save:

.price--on-sale .price__sale {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

- We tried and it worked:

view (49).png

I hope that it will work for your site as well.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
rdyup
Tourist
9 0 2

Hi their,

 

It did not work. Some of the prices are still not aligned check url https://rdyup.co/ and password is aushey. The issue is occurring only on mobile view. Thanks for looking into this.

BSS-Commerce
Shopify Partner
3478 465 556

Hi @rdyup 

We're sorry for not finding the error in the price that is still not aligned. Can you kindly send us some product photos that still have the price alignment error? We will check it for you.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
rdyup
Tourist
9 0 2

5D15061C-250B-4C0A-A531-6B9EA19E2EF9.png3FC84FD6-48B5-4B9D-8604-0F1614BE0B6F.pngDE8E3641-5033-443B-8BB1-35FC84266AC7.png087AF92F-DA14-4272-8501-4B7E623C7632.png

BSS-Commerce
Shopify Partner
3478 465 556

Hi @rdyup 

We're sorry to ask you again about your text alignment issue. Do you want to align it horizontally or vertically with the product tag? Besides your screenshots, can you give us more details about this problem (for example: can you provide the design images and your expectations?)? This will help us support better.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
rdyup
Tourist
9 0 2

I would like the price tags to line up straight under the images for example something similar to how bodybuilding.com has their price tags lining up. I've attached an image of my expectations. Hopefully, this helps you fix the alignment issue.1.png

BSS-Commerce
Shopify Partner
3478 465 556

This is an accepted solution.

Hi @rdyup 

Please find this code in the file component-card.css:

.card__heading {
  margin-top: 0;
  margin-bottom: 0;
}

Please replace the code below with the code above:

.card__heading {
  min-height: 30px;
  max-height: 50px;
  margin-top: 0;
  margin-bottom: 0;
}

 

The above code will add height to the product title, which helps your price tags to align. You can adjust the min-height and max-height as you want.

 

I hope the above suggestions can help you.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
rdyup
Tourist
9 0 2

The price tags have aligned after changing the min-height to 45px and the max height to 55px. Thank you for the assistance.

rdyup
Tourist
9 0 2

rdyup.co and password is aushey

BSS-Commerce
Shopify Partner
3478 465 556

Hi @rdyup 

Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency