Tagged: enfold update, Hooks, social buttons, social share
Team,
Thank you for your amazing framework. It really is an amazing piece of software that our clients love!
On the most recent update of the framework a few hooks I was using to place the socail share buttons on pages broke. The buttons now show at the top of the page behind a header image. Any ideas on what changed and how I can fix it?
Code below:
add_action( 'ava_after_content', 'avia_add_social_toolbar', 10, 2 );
function avia_add_social_toolbar( $id = "", $context = "" ) {
if ( $context == "page" || $context == "single-portfolio" ) {
avia_social_share_links();
}
}
add_filter( 'avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1 );
function avia_add_social_toolbar_template_builder( $content = "" ) {
$content .= avia_social_share_links( array(), false );
$content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>';
return $content;
}
add_filter( 'avia_social_share_title', 'modify_share_title' );
function modify_share_title() {
return "<strong>SHARE</strong>";
}