Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #506403

    Hi,

    We used to have this code to include the social share icons into the title container, but this doesn’t work anymore after some recent template updates. How can we achieve this again?

    /* Enable Social Share Buttons */
    add_filter('avf_title_args', 'avia_add_social_toolbar_template_builder', 10, 2);
    function avia_add_social_toolbar_template_builder($args, $id)
    {
    $args['additions'] .= avia_social_share_links(array(), false);
    return $args;
    }
    #506411

    Hi Ewoud!

    You can now use Social Share Buttons element to add buttons to your content.

    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.

    Regards,
    Yigit

    #506415

    Hi Yigit,

    I don’t want them inside the content, I would still want them to be inserted inside the title container.
    How do I achieve this today? Is there not a similar function like we used to have or at least a similar function where I can then add the shortcode to?

    #506418

    Hey!

    Can you please post a screenshot and show where exactly you would like to show them so we can provide you an accurate solution?

    Cheers!
    Yigit

    #506422

    Link inside private section

    Thank you,

    #506789

    Hi!

    Try to use this:

    /* Enable Social Share Buttons */
    add_filter('avf_title_args', 'avia_add_social_toolbar_template_builder', 10, 2);
    function avia_add_social_toolbar_template_builder($args, $id)
    {
    	ob_start();
    	avia_social_share_links(array(), false);
    	$social = ob_get_clean();
    	$args['additions'] .= $social;
    	return $args;
    }

    Add this in the Quick CSS field:

    .title_container .av-share-box {
        width: 30%;
    }

    Best regards,
    Ismael

    #506803

    Perfect.. that’s the one.
    I need to do some more styling but it is inside the Title Container :-)

    Thank you,

    #506901

    Hi,

    Glad we could help :-) Please let us know if you should need any more help on the topic.

    Best regards,
    Rikard

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