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

    I found this function code in another thread

    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;
    }

    It works for template builder pages but the share icons show up at the top of the page. How would I put them at the bottom of the page?

    Thanks

    #548844

    Hey draig!

    Please make sure that you are using the latest version of Enfold which is currently 3.4.6 – http://kriesi.at/documentation/enfold/updating-your-theme-files/. You no longer need to use custom code to add social share buttons to your content, you can simply add Social Share Buttons element under Content Elements tab of Advanced Layout Builder :)

    Best regards,
    Yigit

    #549298

    Oh, didn’t realize that was there… thanks

    That does mean that I have to add the share buttons to every page. Is there some way I can just make that default for all pages and all portfolio items?

    #549314

    Hi!

    Yes, you are going to need to add manually. You can save your element as a template and then load it on your page using “Templates” button seen on the right side of this screenshot – http://i.imgur.com/qU6aC7A.png

    Alternatively, you can add it inside a text widget.

    You can enable debugging mode to see shortcodes you have created in pages using Advanced Layout Builder – http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/

    Or, You can switch to Default Editor and click on Magic Wand to see full list of shortcodes http://i.imgur.com/n4KXkdm.jpg
    then you can create any of them and copy/paste shortcode into any other content element or into text widget.

    Best regards,
    Yigit

    #549331

    The function above works except that the share buttons are at the top of the page… surely there is some way to use that function but edit it to make the share buttons appear at the bottom of the page?

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