On my shop's front page, my products add to cart
buttons is not aligned.
See this picture
A fix to this would be to just make the titles shorter or make every title be on 2 lines, but that would bring me more problems on my category pages
.
Is there a way to just fix this here on the front page?
Option #1: Set
position: relative
and optionally amin-height
on yourli.product
and setposition: absolute
andbottom: 0
on your [Add to cart] buttons in your theme's CSS. Note that your theme may be using different classes/IDs. If the ones I've used don't work, you'll need to inspect with your browser's inspector tools to see which to use for your theme:Option #2: Set a
min-height
on your product's title (e.g.,h2
)