Forum Replies Created

Viewing 3 posts - 31 through 33 (of 33 total)
  • Author
    Posts
  • Hello Josue,

    Thank you for this recommendation, I have tried it and it works! As I’m using a Child Theme, I’d rather not change the Enfold Parent – is there a way I can incorporate this change in my child theme as well?

    Best regards,
    Stephanie

    in reply to: "Share this" snipet placement after update to 3.1.1 #649695

    This is an old thread, but I used Josue’s code to insert the sharing buttons at the end of a page with template builder content and found out that a closing div tag is missing.
    Just in case somebody else runs into this, the correct code would be:

    add_action('ava_after_content', 'avia_add_social_toolbars', 10, 2);
    function avia_add_social_toolbars($id = "", $context = "")
    {
    	if($context == "page" || $context == "single-portfolio" || $context == "product")
    	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 .= '<div id="custom_share_box" class="avia-section main_color container_wrap"><div class="container">';
    	$content .= avia_social_share_links(array(), '', '', false);
    	$content .= '</div></div>';
    	return $content;
    }

    Thanks for the great support & documentation! :)

    in reply to: Problems with Post Thumbnail Link and Comment Function #594197

    thank you for your reply – yes, we were able to fix this issue in the meantime, it was not an issue with enfold.

Viewing 3 posts - 31 through 33 (of 33 total)