FLOW theme -- how to align "add to cart" buttons when item names are different lengths?

Solved

FLOW theme -- how to align "add to cart" buttons when item names are different lengths?

tmaciejewski
Excursionist
21 2 0

I am using the FLOW theme. Here is my store page --

https://4ptmke4sp8sa669y-8268827.shopifypreview.com/collections/all-products

 

Some product names are long enough that they wrap to two lines. I'm not allowed to change product 

 

I want all "Add to Cart" buttons to be aligned, even if some product titles take two lines. I want the space needed to align the buttons to be between the price and the button.

 

I DON'T want to create more space between the product title and the price.

 

How can I get all buttons to align along the bottom?

 

layout i want.jpg

 

Thank you!

Accepted Solution (1)

Futuremerce
Shopify Partner
15 8 6

This is an accepted solution.

Hi @tmaciejewski 

 

Please follow these steps:

1) Go to Online Store
2) Click edit code
3) Find your theme.liquid file

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

 

 

<style>
product-card.grid-view-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

product-card.grid-view-item .quick-add-wrapper {
    margin-top: auto;
}
</style>

 

 

Thanks,

Futuremerce

★ Need help with your store? Feel free to reach out ★

https://www.futuremerce.com
hello@futuremerce.co

View solution in original post

Replies 10 (10)

Futuremerce
Shopify Partner
15 8 6

This is an accepted solution.

Hi @tmaciejewski 

 

Please follow these steps:

1) Go to Online Store
2) Click edit code
3) Find your theme.liquid file

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

 

 

<style>
product-card.grid-view-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

product-card.grid-view-item .quick-add-wrapper {
    margin-top: auto;
}
</style>

 

 

Thanks,

Futuremerce

★ Need help with your store? Feel free to reach out ★

https://www.futuremerce.com
hello@futuremerce.co

Ohara54
Visitor
1 0 0

thanks for sharing...

tmaciejewski
Excursionist
21 2 0

This worked. Thanks so much!

BSSCommerce-B2B
Shopify Partner
1972 564 561

Hi @tmaciejewski , 

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-1722218860100.png

 

Step 2: Search for the file theme.liquid. And add this code snippet before tag </head> or </body>: 

<style>
  .grid-view-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
  .grid-view-item .quick-add-wrapper {
    margin-top: auto !important;
  }
</style>

Step 3: Save and reload page:

The result will be: 

BSSCommerceB2B_1-1722219023876.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

tmaciejewski
Excursionist
21 2 0

Thank you so much!

BSSCommerce-B2B
Shopify Partner
1972 564 561

Hi @tmaciejewski   

We're happy to see that our suggestion helped you solve the issue.

Can you kindly give us likes and mark solution for us? This can be a reference for other merchants if they have an issue like you and greatly motivate us to contribute to our community.

Thanks in advance.

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

BSSCommerce-B2B
Shopify Partner
1972 564 561

I hope it resolves your issue

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

EBOOST
Shopify Partner
1282 326 382

Hi @tmaciejewski ,

May I suggest to update code these steps:

1. Go to Store Online-> theme -> edit code
2. Layout/theme.liquid
3. Add code below to end of file and before </body> tag ( refer screenshot)

<style>
        .product-grid--wrapper .grid-view-item {
          height: 100%;
          display: flex;
          flex-flow: column;
        }
        .product-grid--wrapper  .grid-view-item .product-grid--title + .product-grid--price {
          margin-bottom: auto;
        }
      </style>

EBOOST_0-1722222628794.png

 

After Code above has been applied.

Untitled-1.jpg

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤Coffee tips
tmaciejewski
Excursionist
21 2 0

Thank you!

tim
Shopify Partner
3911 395 1440

I'd start by pasting this into "Custom CSS"

product-card.grid-view-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grid-view-item .quick-add-wrapper {
  margin-top: auto;
}

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com