This code enables you to add a button to your product images using WooCommerce. You can :
- Add a like, love, wishlist, favorite, bookmark or custom button html to your product images
- Show the amount ( count ) of likes for each product
- Style your buttons using any colors
Demo Video
Shows the settings needed to add the buttons with count to your products images on WooCommerce shop page archives.
Works in any WordPress theme.
Installation
There’s 3 steps :
- Copy and paste the PHP code to the end of your child themes functions file.
- Copy and paste the CSS to the end of your child themes style.css file.
- Install the favorites for WordPress plugin by Kyle Phillips and configure the settings to apply to media. Go to Favorites Settings > Display and Post Types > Enabled Favorites for : Media.
Leave a Reply
You must be logged in to post a comment.