Tell us what you are trying to do?
I have created a set of views for displaying Woocommerce products with a query set to show only products with a custom post type relationship. I’m very happy with how things look but I’ve just had to add a WooCommerce Rental plug in and when products are set to ‘Rental Only’ within WooCommerce, the code for the add to cart button changes. I used the following toolset field for the button: [wpv-woo-buy-or-select add_to_cart_text="Add”]. I used view page source to see the class of the original button (when all products were not rentals) and it is as follows:
Therefore I tried adding this to css within the view and alternatively in the theme’s Custom CSS section but nothing changes:
.button.product_type_simple{background-color:black;}
Can you help. Is there something I can write within the view code itself to force the button to change colour or is there anything else you can think of?
The non rental page that shows the button colour correctly is:
versteckter Link
And the incorrect blue button for rental only products is here (currently set to home page):
versteckter Link
Many thanks,
Barry.
Is there any documentation that you are following? No
Thank you so much for doing this so quickly. I'm annoyed I had to bother you with it as now I can see the answer I think I could have tried it myself but I wouldn't have known to add the !important; bit.