{% capture the_snippet_social_login %} {% include 'ssw-widget-social-login' %} {% endcapture %} {% unless the_snippet_social_login contains 'Liquid error' %} {{ the_snippet_social_login }} {% endunless %}