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

    Hey guys, I recently updated to the latest version 3.1 and one of my custom functions has broken.

    I was using this in order to display social sharing links on portfolio items:

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

    The code still works in the sense that the icons are presented, however, after the update the icons are now all the way at the top of the page (where the content begins) and not at the bottom of the entry as it used to.

    I would appreciate any help in getting this working.

    Thanks!

    #412961

    Hi momon!

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

    Cheers!
    Yigit

    #413264

    Dude, that is the *thing* right there, love this new element! Thanks so much! With every update I am now more convinced that this is the best theme EVER!

    Thanks!

    • This reply was modified 9 years, 8 months ago by Yigit.
    #413268

    Hey!

    You are welcome. You can check new features here – http://kriesi.at/archives/enfold-version-3-1-new-elements-demos-and-long-awaited-improvements :)
    P.S.: I edited your post and cencored it :)

    Regards,
    Yigit

    • This reply was modified 9 years, 8 months ago by Yigit.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.