I have a multi site EE set up and I have set up a snippet to use in my template. The snippet syntax is {current_site_name}
and the content that the snippet outputs is {site_name}
I am trying to use this snippet in the following if statement:
{if current_site_name == "Site 1"}
<a href="tel:{site1_phone}">{site1_phone}</a>
{if:elseif current_site_name == "Site 2"}
<a href="tel:{site2_phone}">{site2_phone}</a>
{if:elseif current_site_name == "Site 3"}
<a href="tel:{site3_phone}">{site3_phone}</a>
{if:else}
<h1>{current_site_name}</h1>
{/if}
The if statement doesn't seem to work, the else condition just gets run every time even though the value that it outputs matches one of the site names like Site 1, Site 2, Site 3