neilgee
2/14/2015 - 9:32 AM

Output Genesis Simple Shares via Action Hook and Widget Areas

Output Genesis Simple Shares via Action Hook and Widget Areas

//* Reposition the Genesis Simple Share buttons
add_action( 'genesis_entry_header', 'wpb_reposition_simple_share', 5 );
function wpb_reposition_simple_share() {

	if( 'post' === get_post_type() ) {
		genesis_share_icon_output( 'box', array(  'twitter', 'facebook', 'googlePlus', 'linkedin' ) );
	}

}
<?php
if ( function_exists( 'genesis_share_icon_output' ) ) {
    global $Genesis_Simple_Share;
    genesis_share_icon_output( 'aside' , $Genesis_Simple_Share->icons );//outputs social shares as defined in plugin
} 
?>
<?php
if ( function_exists( 'genesis_share_icon_output' ) ) {
    global $Genesis_Simple_Share;
    genesis_share_icon_output( 'aside' , array('linkedin', 'facebook') );//manually add in social
} 
?>
//* Reposition the Genesis Simple Share buttons
add_action( 'genesis_before_entry', 'wpb_reposition_simple_share_post', 5 );
function wpb_reposition_simple_share_post() {

	if( 'post' === get_post_type() ) {
		genesis_share_icon_output( 'box', array(  'twitter', 'facebook', 'googlePlus', 'linkedin' ) );
	}
}
add_action( 'genesis_after_entry', 'wpb_reposition_simple_share_page', 5 );
function wpb_reposition_simple_share_page() {

	if( 'post' === get_post_type() ) {
		genesis_share_icon_output( 'box-bottom', array(  'twitter', 'facebook', 'googlePlus') );
	}
}