Hello, can anyone help me with locking the size of the product title textbox? Due to the varying length of product title, it is causing my “add to bag” button positions to be very inconsistent.
I’d like the textbox to be fixed to 5 rows.
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
It’s possible to make it so that cart buttons are always aligned no matter what length product titles are, but would need to see your site or at least know your theme to suggest the code.
However, it looks like Horizon and it means you that can do it with settings alone.
Simply add a “Group” above your “Buy buttons” and move your “Title” and “Price” into this group.
Then set Group Layout-> Position: bottom and Size-> Height: Fill. All done:
However I do have the SKU block, and whenever Add to Cart button is aligned, the SKU will lose alignment- please refer back to the image on my original question, the SKU was looking good.
I believe the root problem is the product title length as you can see the textbox sizes are inconsistent.
Hope this explains better
It would look weird no matter what you do. The product with one line title will have a whole bunch of extra space when compared to the one with a 5 line title.
Better to have title around length the same if you can. 2-3 lines is plenty. You really don’t need to have code to add a bunch of space where it’s not needed or wanted. Another thing you could do is arrange the products in a way they are even. 3 line title products in one row, 5 line products in the next.