-
AuthorPosts
-
December 30, 2014 at 6:30 pm #173801
Hi,
Absolutely loving this theme and it’s built in functionality and flexibility. Quick question for you. Using WP 4.1, Integrity theme 3.1.1 and the shortcodes 2.6.1.
I’ve installed woocommerce and everything is great except for the message that appears on a single product page after clicking Add to cart. It’s obviously been modified by X to blend into the theme, but the view cart button is completely missing. Instead I get something that looks like this:
View Cart
“Product X” was successfully added to your cart.I’m working on a localhost right now and can’t give you a url to check, but I’ve modified nothing on this page. I need to have the view cart button show up in the x-alert-info box you are using and float right. Any ideas on how best to resolve this? Thanks.
December 31, 2014 at 2:02 am #173976Hey there,
Please add the code below in your Appearance > Customize > Custom > CSS.
.woocommerce-message .button { float: right; }
You can further style the View Cart link which is by default styled as a button by Woocommerce. See http://htmldog.com/reference/cssproperties/ for more CSS properties you can utilize.
Hope that helps. 🙂
January 2, 2015 at 10:39 am #175128Thanks, but that’s all very basic. I’m well versed in CSS, and I guess maybe I didn’t ask the right thing.
You’ve modified the successfully added product to cart box to use your x-alert-info styling so why didn’t you modify the View Cart button to use the button styling set by the theme? As it is now, no styling is being applied and there is no button. It’s just a text link that’s not even positioned correctly. I can custom code everything myself, but it seems like an oversight that your modifications leave it unusable as is. Thanks.
January 2, 2015 at 3:00 pm #175280Hi again,
Thank you for your feedback, you can override woocommerce CSS to apply the default theme styling for the View Cart button. You’ll need to add the following jQuery script via Appearance > Customize > Custom > Javascript
jQuery(document).ready(function($){ $('.single-product .x-alert ').removeClass('woocommerce-message'); });
This will override the theme styling and you’ll be able to see the button instead of View Cart link.
Hope this helps!
January 3, 2015 at 2:43 pm #175784Thank you, that helped resolve the issue.
January 3, 2015 at 10:48 pm #175958You’re welcome. Glad we could help.
October 12, 2015 at 12:26 pm #621898Hey there,
With regards to the jQuery script you provided, how would I place the button to the right of the text instead of the left? Here’s a screenshot of what it looks like currently:
Thanks!
October 12, 2015 at 12:53 pm #621942Hi there,
Thanks for writing in!
To achieve that, please add following CSS under Custom > CSS in the Customizer:
.single-product .x-alert-info { overflow: hidden; } .single-product .x-alert-info .button { float: right; }
Hope this helps. 🙂
Thank you!
October 14, 2015 at 1:31 pm #625245You are incredible!!! Thanks so much! You guys have the best support out there, hands down.
October 14, 2015 at 3:18 pm #625412Glad we could help 🙂
Cheers!
-
AuthorPosts