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

    Hi there,

    I have Custom Post Types whos posts are built using the Page Builder. I need to incorporate the social sharing at the bottom. How can I do this and what file do I need to edit. Also, can this be controlled by using a shortcode or component in Page Builder?

    #339860

    Hi fulanoinc!

    Thank you for using Enfold.

    Unfortunately, it’s not possible to add the social share using the advance layout builder. Try this on functions.php:

    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('CUSTOM POST TYPE')){
    	$content .= avia_social_share_links(array(), false);
    	$content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>';
    }
    return $content;
    }

    Cheers!
    Ismael

    #397901

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Include Social Sharing Icons at Bottom of Page Builder Custom Post Type’ is closed to new replies.