Hide Select Options with Certain Values – WooCommerce FedEx Plugin
-
Hello. I am using WooCommerce with the official WooCommerce FedEx plugin to calculate shipping. My client only ships in the US, so I have disabled all other countries in the shipping plugin settings. However, all countries are appearing as selectable options in the shipping calculator on the cart page. My client does not want to see all of those unnecessary countries listed, but I cannot find a method to hide them. If there was a way to make United States appear first, at the top of the list, that would work too. I have tried this CSS method, but it does not work in Chrome. Chrome recognizes it and I can see it applied to the attribute in console, but it is not applied to the design.
.woocommerce-shipping-calculator #calc_shipping_country option[value=AF] { display:none !important; visibility: hidden !important; }
- This topic was modified 3 years, 5 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘Hide Select Options with Certain Values – WooCommerce FedEx Plugin’ is closed to new replies.