Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #309473

    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

    #309638

    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

    #312263

    Hi Ismeal, your code works!
    Thank you very much.

    Best regards,
    Daniela

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Share Buttons in an other object than post and pages’ is closed to new replies.