Last active
March 25, 2019 14:06
-
-
Save bekarice/7587610acb69e7a62a92 to your computer and use it in GitHub Desktop.
Add content below WooCommerce Featured image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds content below featured images | |
* Tutorial: http://www.skyverge.com/blog/add-content-woocommerce-featured-images/ | |
**/ | |
function skyverge_add_below_featured_image() { | |
echo '<h4 style="text-align:center;margin-top:10px;">Click to Enlarge</h4>'; | |
} | |
add_action( 'woocommerce_product_thumbnails' , 'skyverge_add_below_featured_image', 9 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This only works if the product does NOT have a thumbnail gallery.