
-
AuthorPosts
-
September 21, 2015 at 1:36 pm #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; }
September 21, 2015 at 2:01 pm #506411Hi 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,
YigitSeptember 21, 2015 at 2:05 pm #506415Hi 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?September 21, 2015 at 2:09 pm #506418Hey!
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!
YigitSeptember 21, 2015 at 2:15 pm #506422Link inside private section
Thank you,
September 22, 2015 at 6:31 am #506789Hi!
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,
IsmaelSeptember 22, 2015 at 7:49 am #506803Perfect.. that’s the one.
I need to do some more styling but it is inside the Title Container :-)Thank you,
September 22, 2015 at 11:04 am #506901 -
AuthorPosts
- You must be logged in to reply to this topic.