There is possibility to include a short code to display social buttons on blog entries “Share this entry” in other pages other than blog posts?
regards
Hey Carlos!
Refer to this topic:
https://kriesi.at/support/topic/share-icons-on-pages-and-portfolio-items/
Best regards,
Josue
Thanks Josue;
I have seen the explanation you send me the link I made some tests but it is not clear ….
I’m not clear, please, what I want is that the social bar icons appear only in some pages not need to appear in all (except in the blog post)
As I do this, I include that code and where?
Thank you.
regards
Hey!
These codes are meant to be put in the theme functions.php file (at the very end):
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();
}
If you use the template builder on your pages/portfolio use this code instead:
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;
}
Regards,
Josue
gracias
Saludos