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

    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

    #282040

    Hey Carlos!

    Refer to this topic:
    https://kriesi.at/support/topic/share-icons-on-pages-and-portfolio-items/

    Best regards,
    Josue

    #282182

    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

    #282211

    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

    #282357

    gracias

    Saludos

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘icon social’ is closed to new replies.