I need to get the style of the add to cart button to create a new button in the product page. How can I get the style of this button?
I've tried using the get_theme_mods() function but it does not seens to work well.
CodePudding user response:
Just open up chrome development tools and look at the CSS of the button and copy it. If your unfamiliar with chrome dev tools, watch some youtube videos to understand how to use it. Or you can look at the theme style sheet or woocommerce style sheet to find styles of the button. Using Dev tools is quicker and easier though.
CodePudding user response:
Open the Website, and hit F12. You will see an icon like the one in Red from this picture; Picture of the button
Now Select on your Website the button. On the Developers Tool (F12) you will find the Class that will allow you to identify the Style on your theme.
Thank you! :)