Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #416554

    I just updated my theme for 3.1.1. In my child theme I had added the following code to add the Share this functionality to the bottom of all pages; however, with the theme update that Share This is now appear at the top of the content area of the page with the content overlaying the buttons. What do I need to resolve this?

    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();

    }

    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;

    }
    function modify_share_title(){
    return “Share this”;
    }
    add_filter(‘avia_social_share_title’, ‘modify_share_title’);

    #416557

    Hey endoradigital!

    You can remove the code and use new “Social Share Buttons” element under Content elements in Advanced Layout Builder :)

    Regards,
    Yigit

    #416564

    That is an option; however, I liked the fact that when a new page was created it was automatically added. Is that possible?

    #416570
    #416588

    The information from the other post worked great; however, the main blog page does not show the social sharing icons. The single post pages do.

    #416643

    I changed the blog to use the advanced layout builder and now it adds the social sharing.

    • This reply was modified 9 years, 9 months ago by endoradigital.
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Enfold 3.1.1. Share This for Pages’ is closed to new replies.