Shopify themes, liquid, logos, and UX
Hi,
This question has been raised a few times, but I can't get it up and working (outdated posts?) and I have an additional question regarding the design.
As I am using Debut theme there is by default no "add to cart" button below the products on the homepage/collection pages. I would like to add an "add to cart" button in the same style as if you would create a Buy button for an external site (Sales Channels > Buy button > Create a buy button). Please find an image below.
Can anyone help me out? Thanks in advance!Buy button
Solved! Go to the solution
thanks
i have update my color collection page proper code so can you please update
also if you need same as product page it can be done some customization code
Hey i was wondering if you could help me too.
I have added in thr add to cart button on my best sellers collection on the homepage but its not aligned
Its also not going to cart just an invalid page can you help me too?
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
thanks for store URL, please add this code
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
.product-card__title {min-height: 50px;isplay: inline-block;}
oh wow
thanks so much
Any idea how to fix the add to cart so it goes to the cart page and not an error?
also can we straighten the add to cart button?
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
sorry but you have add wrong code please add this code
<form method="post" action="/cart/add">
<input type="hidden" name="id" value="{{ product.variants.first.id }}" />
<input min="1" type="number" id="quantity" name="quantity" value="1"/>
<input type="submit" value="Add to cart" class="btn" />
</form>
Thank you so much
I have done that now
Is it possible to move the view all button down?
and line up hte add to cart buttons - it looks quite messy on mobile
Yes, please add this css code
.product-card__title {
min-height: 50px;
display: inline-block;
}
where does it go?
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
Hello there, I have done this, but on mobile, i have very weird spacing on my buttons. (see photo) Can you advise how to correct that?
Thanks
sorry for this issue 'bt i can't see any photos also please share store url
sorry i can't see your attachment bt can you please try this code
1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
@media only screen and (max-width: 749px) {
.btn, .shopify-payment-button .shopify-payment-button__button--unbranded {font-size: 12px;}
}
Here is what I am referring to.
do you have like this?
User | RANK |
---|---|
212 | |
150 | |
69 | |
46 | |
39 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023