Last active
October 31, 2015 06:57
-
-
Save neilgee/ab92aaaa0f7a8b9a6230 to your computer and use it in GitHub Desktop.
Genesis Simple Share on WooCommerce Products
This file contains 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
<?php //<~ don't add me in | |
add_action( 'woocommerce_after_shop_loop_item', 'wpb_reposition_simple_share_archive'); | |
function wpb_reposition_simple_share_archive() { | |
global $Genesis_Simple_Share; | |
echo genesis_share_icon_output( 'product', $Genesis_Simple_Share->icons ); | |
} |
This file contains 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
<?php //<~ don't add me in | |
//* Reposition the Genesis Simple Share buttons in WooCommerce Producrs | |
add_action( 'woocommerce_single_product_summary', 'wpb_reposition_simple_share_product', 30 );//adjust priority number for output order | |
function wpb_reposition_simple_share_product() { | |
global $Genesis_Simple_Share; | |
echo genesis_share_icon_output( 'product', $Genesis_Simple_Share->icons ); //output the default icons as set in the plugin settings - and the first parameter 'product' forms the CSS name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment