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
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
sorry functions.php file
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…?