Align add to cart button on minimal theme

Please help!

I need to align the add to basket button on my webpage and mobile

I also need to make it so when its clicked it doesn’t redirect to the cart page

Hi @goosha ,

Go to Assets > theme.scss.liquid and paste this at the bottom of the file:

#CollectionSection .grid__item form {
	text-align: center !important;
}

that hasn’t made a difference

Hi @goosha ,

Please change code:

#CollectionSection .grid-link {
	padding-bottom: 15px !important;
}
#CollectionSection .grid-link__title {
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
#CollectionSection .grid__item form {
	text-align: center !important;
}

thanks its worked!

it has not worked on the home page collection

Hi @goosha ,

Please add code:

[data-section-type="featured-products-section"] .grid-link {
	padding-bottom: 15px !important;
}
[data-section-type="featured-products-section"] .grid-link__title {
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-section-type="featured-products-section"] .grid__item form {
	text-align: center !important;
}