This topic has 12 replies, 3 voices, and was last updated 5 years, 2 months ago ago by Rose Tyler
Hello,
Any easy way how to align Add to cart button in shop if you have different variable and simple products? I know there exists plugins(like woo align buttons) to do this but prefer not to use one if not needed for x-store theme.
Example in private area.
thanks,
tomas
Hi,
That caused by the length of product title. You can use this option to limit characters http://prntscr.com/mkd5hw
Regards,
Hi Hung,
Already tried that, it looks that it does nothing and in addition I don’t think that product title length is only issue. As you can see on picture some products have variables like SIZE and COLOR or other, while some of them don’t. Obviously that cause a difference as well.
thanks,
t.
Hello,
Please add this code in Theme Options > Custom css > Global custom css:
.content-product .st-swatch-in-loop {
margin-top: 20px;
min-height: 65px;
}
.content-product .product_type_simple.add_to_cart_button {
margin-top: 99px !important;
}
.content-product .product-title a {
min-height: 45px;
}
Let me know the result.
Regards
Hello Rose,
Doesn’t seems to help. I have tried two different browsers and cache cleared.
I share login details in private area in case you want to check if I put css code right(I believe I did).
Thanks,
Tomas
Hello Rose,
Cool, just came back from lunch and can see also change… I also cleared browser page before but could not see difference, not sure why. Anyway looks this works now, thank you.
This option to limit length of product title which shown me your colleague Hung = https://prnt.sc/mkd5hw
I have set it to 100 char limits but looks it don’t cut the title.
Should not limit those titles? https://prnt.sc/mkim9v
We will make shorter titles but might be good if in case we go above some limit it is cut automatically.
Thanks,
Tomas
Hello,
Likely you don’t have titles with length 100 and more symbols. Try to set Product title chars limit – 10. Then clear cache and check.
Regards
Hi Rose,
Gosh, I am dummy. My apologize for wasting your time. Thanks 🙂
Hopefully last question. Can i change those pictures which overlay pictures when they are “out of stock” or “stock available on backorder” ?
Thank you,
Tomas
Hello,
“Out of stock” label can be disabled in Theme Options > Shop elements > Sale & Out of Stock.
If you want to change the style of the label, add code like this http://prntscr.com/mkjrwf in Theme Options > Custom css:
.content-product .stock, .content-product .available-on-backorder {
color: white;
background-color: red;
}
Regards
Thank you very much.
You’re welcome!
Regards
The issue related to '‘Add to cart button alignment’' has been successfully resolved, and the topic is now closed for further responses