Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #414343
    #414378

    Hi dondela!

    You no longer need to use a code to display share buttons. Please edit your page and add Social Share Buttons element under Content elements in Advanced Layout Builder

    Regards,
    Yigit

    #414843

    Hi Yigit,

    thanks for your fast answer. So there is no way to show this social share buttons globally on all pages?
    I am asking because i would have to change 50 pages…
    Thanks dondela

    #415640

    Hi!

    Please replace the code with this:

    
    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, '', false);
    	$content .= '';
    	return $content;
    }

    Best regards,
    Ismael

    #415727

    Thanks for helping,
    tried this code but nothing changed. I still see no social sharing buttons.
    Is this the right code?

    //show social sharing in avia
    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();
    }

    function avia_add_social_toolbar_template_builder($content = “”)
    {
    $content .= avia_social_share_links(array(), false, ”, false);
    $content .= ”;
    return $content;
    }
    }

    #415980

    Hey!

    The code works fine our installation. Post the website url here, we would like to check it. Note that this will only work for pages or posts created using the advance layout builder.

    Regards,
    Ismael

    #416371

    I figured it out, it works now. I just had a typo-error.
    Thanks for your great support!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘show social sharing in avia code broken after enfold update 3.1.1’ is closed to new replies.