Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #279931

    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.

    • This topic was modified 10 years, 6 months ago by amiraliz. Reason: add more issues
    #279990

    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

    #280040

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Social media toolbar position’ is closed to new replies.