Hi,
I’ve managed to successfully add the code to functions.php to display social toolbar at the bottom of each page. Although I followed directions here, I was not able to display the toolbar only on portfolio entries and it appears on all pages.
I also wonder how can I position it inside my “avia_textblock” of each entry, after all the texts, therefore having a narrow set of icons, easily accessible.
Thanks for the help.
Hi amiraliz!
Thank you for visiting the support forum.
Are you using the advance layout builder for your portfolio items? If yes, please use this:
add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1);
function avia_add_social_toolbar_template_builder($content = "")
{
if(is_singular('portfolio')) {
$content .= avia_social_share_links(array(), false);
$content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>';
}
return $content;
}
Cheers!
Ismael
Thanks. that worked very well. But still don’t know how to position the toolbar inside my “avia_textblock” of each portfolio entry, after all the texts instead of the very bottom of the page.