linux4me2
Forum Replies Created
-
It’s hard to work with things that aren’t there! 🙂
For the empty cart text:
.woocommerce-mini-cart__empty-message { color: black; }For the cart total, if you want normal font-weight and black color, you can try this:
.woocommerce-Price-amount.amount { font-weight: normal !important; color: black !important; }Try those and let me know where we are.
Forum: Plugins
In reply to: [WooCommerce] Woo Commerce Stock Counter – Dynamic Progress Donut ChartThat’s an interesting idea. I don’t know of a plugin that will do it for you, but if you’re willing to roll your own, WordPress already comes with jQuery, and there are a bunch of jQuery donut chart plugins out there that you could use to create the graph using the stock/inventory functions from WooCommerce to populate the graph and a hook to put it in the product listing. You could even use a timer and an AJAX call to update it live while customers are viewing the page.
Forum: Plugins
In reply to: [WooCommerce] change attributes label to boldYou’re welcome! I’m glad it’s working for you.
Forum: Plugins
In reply to: [WooCommerce] Display orders on custom page – publicIt’s definitely possible to do.
If I were going to do this, I would create a shortcode in my child theme’s functions.php, then in the shortcode, I would use the wc_get_orders function to retrieve the orders I wanted and output them.
Put the shortcode in a Shortcode Block on the page you want to display the orders, and you’re good to go.
You could build a custom page template instead of going the shortcode route, but it would require more maintenance down the line if your theme changes.
Forum: Plugins
In reply to: [WooCommerce] Block select products by Attributes AND categoryYou may find you have more options if you go old-school and use the Shortcode Block with one of WooCommerce’s Products Shortcodes.
I haven’t tried it, but it looks like you would be able to combine the attributes and category in a shortcode to get what you want.
It looks like the product title has a hover effect so it goes from white to gold when you hover over it. The following code will just turn everything black, so you’ll need to tweak the settings to get the hover effect back if you want it or to another color if black isn’t what you want. Try adding this to your child theme’s style.css or to Appearance -> Customize -> Additional CSS if you don’t use a child theme:
.woocommerce-mini-cart-item.mini_cart_item { color: black; } .ast-site-header-cart .widget_shopping_cart .cart_list a, .woocommerce .ast-site-header-cart .widget_shopping_cart .cart_list a { color: black; } .woocommerce-mini-cart__total.total { color: black; }Forum: Plugins
In reply to: [WooCommerce] change attributes label to boldTry adding this to your child theme’s style.css or if you don’t have a child theme, try adding it to Appearance -> Customize -> Additional CSS:
.variations .label label { font-weight: bold; }Forum: Plugins
In reply to: [WooCommerce] Display all coupons in a pageWooCommerce has an extension called Smart Coupons that will do this:
By default, the Smart Coupons plugin displays available/usable coupons on cart, checkout & my account page.
It also allows you to display the available coupons on any page via a shortcode.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Google & Apple Pay not showing@fabhack Thanks for the info! I must have some payment method connected on my phone that I don’t know about.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Google & Apple Pay not showing@fabhack Please post the solution when you get one. I’ve noticed a similar issue, though in our case, the Google Pay button shows up on Chrome in Android, but not Chrome on a PC.
Forum: Plugins
In reply to: [WooCommerce] Default sortingAppearance -> Customize -> WooCommerce -> Product Catalog -> Default Product Sorting.
Forum: Plugins
In reply to: [WooCommerce] How to remove “Billing” from checkout page error messagesIt looks like you’ve got fancy quotes in that line, which might cause an error, though it would help if you post the actual error message.
Give this one a try by substituting it for that line in your code snippet:
$error = str_replace('Billing ', '', $error);Forum: Plugins
In reply to: [WooCommerce] Woocommere Product Description has borderYou might try adding classes to the relevant elements you want to change with corresponding CSS rather than using things like:
#tab-description:nth-child(2) > p:nth-child(2)which is going to affect child elements with consequences that you don’t intend. It will be a hassle now, but save you problems like this down the line.
Good luck!
Forum: Plugins
In reply to: [WooCommerce] Woocommere Product Description has borderYou apparently have some inline CSS that’s causing the border problems on the test page:
#tab-description:nth-child(2) > p:nth-child(2) { border: 1px solid rgb(255, 255, 255); }and, likewise, the gold text is coming from some inline CSS:
body, select, input, text area { color: #ffd700; }On the Airpods page, the border comes from the same inline CSS:
#tab-description:nth-child(2) > p:nth-child(2) { border: 1px solid rgb(255, 255, 255); }In both cases, I can see those lines of CSS if I look at the source code of each page. Is it possible you added some CSS to Appearance -> Customize -> Additional CSS, and have those entered there? If so, you can delete it and fix the problem.
Forum: Plugins
In reply to: [WooCommerce] Woocommere Product Description has borderDid you try this:
.entry-content pre, .comment-body pre { border: none; }If that doesn’t do the trick, you can try:
.entry-content pre, .comment-body pre { border: none !important; }The former works for me.