Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #406143

    I’m trying to create a landing page for a “buyer’s guide.” The page has a conversion form, which links to a downloadable PDF.

    Under my text and image (i.e. “marketing fluff”), I’d like to have social media icons that would “share” the landing page. It’d like to have a single horizontal line similar to the following:

    “Share the Buyer’s Guide: (LinkedIn share icon) | (Facebook share icon) | (Twitter share icon) | (E-mail share icon)”

    I’m trying to avoid using a plug-in as I think you’re normal social sharing for blog posts and such is perfectly adequate. I simply (or not simply) want to be able to create impromptu social sharing links, but keeping the integrity of the Enfold theme.

    I hope this makes sense. Any help you can provide is appreciated.

    Take care.

    – Anthony

    #406165

    put this inside the function.php file. i have just done it and works well, the share icon tool box will appear at the bottom of the page.

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

    cheers

    #406166

    sorry functions.php file

    #406442

    Is there a specific place within the functions.php file to insert the code…?

    Also, will this allow me to put the social share button in a specific place, or will it always be at the bottom of the page…?

    #406623

    Hi!

    You can add the code to bottom of Functions.php file. It will display share icons on the bottom of the page.

    Cheers!
    Yigit

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