Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #306433

    Hey there. I can see that there are social share buttons in the posts. Is there an element to create those buttons with the page builder as well so I could also place them in a portfolio? Sure I can download another plug in but if it is already included in the posts it might be smart to reuse it…


    Hey Gabster!

    Thank you for using Enfold.

    You can add this on functions.php to add the social share section at the bottom of the portfolio items:

    add_action('ava_after_content', 'avia_add_social_toolbar', 10, 2);
    function avia_add_social_toolbar($id = "", $context = "")
    	if($context == "page" || $context == "single-portfolio")
    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;


    This reply has been marked as private.


    Thank you for the update.

    Do you mind if we take a look on an actual portfolio page? Regarding the comment section, I edited the code above. Please use it instead.


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.