Last active
July 8, 2016 11:55
-
-
Save thecodepoetry/76b69c2a886084c9aaf0 to your computer and use it in GitHub Desktop.
Add share button to Woocommerce product page in The7.2, Armada
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
add_action('woocommerce_share', 'product_share', 10); | |
function product_share() { | |
presscore_display_share_buttons('post', array('echo' => true)); | |
} |
Thanks, it's help! By the way, is it possible set Share buttons visibility? Show on hover Or Always visible?
Thanks, that worked. But in the7.3 there are 2 versions of share buttons
- show on hover
- always visible
Your code is option 1, show on hover. Do you have the right code for the option 2, always visible?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this code in your child theme functions.php