Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #681479

    Hi, I am wondering how I can put the social sharing buttons on the bottom of any page of my website? I tried to use a code that I found while researching the topic on the forums, but it doesn’t work when I use it in the advanced layout editor. Thanks

    add_action(‘ava_after_content’, ‘avia_add_social_toolbars’, 10, 2);
    function avia_add_social_toolbars($id = “”, $context = “”)
    {
    if($context == “page” || $context == “single-portfolio” || $context == “product”)
    avia_social_share_links();

    }

    add_filter(‘avf_template_builder_content’, ‘avia_add_social_toolbar_template_builder’, 10, 1);
    function avia_add_social_toolbar_template_builder($content = “”)
    {
    $content .= ‘<div id=”custom_share_box” class=”avia-section main_color container_wrap”><div class=”container”>’;
    $content .= avia_social_share_links(array(), ”, ”, false);
    $content .= ‘</div>’;
    return $content;
    }

    #681754

    Hi duaneleewo,

    I’m not sure where you found that code but I think that should go into your functions.php file, not in the builder. Could you try that out please?

    Regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.