Hi,
i activated the share buttons for pages with the following code:
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;
}
I installed also a event calendar plugin and want to show the buttons also in a single view of an event. Which code I have to insert into the single-view.php of the event calendar? Is there a possibility?
Many thanks,
Daniela
Hi Daniela!
Thank you for using Enfold.
If you don’t mind, please post the single-view.php code on pastebin.com. We would like to check it. You need to add this code somewhere on that file in order to have the share entry section:
avia_social_share_links();
Best regards,
Ismael
Hi Ismeal, your code works!
Thank you very much.
Best regards,
Daniela