I am hiding the system footer by having a code snippet with the following:
<script runat="server" language="ampscript"> SET @flag = "1" IF @flag == "0" THEN %%Member_Busname%% %%Member_Addr%% %%Member_City%% %%Member_State%% %%Member_PostalCode%% %%Member_Country%% %%profile_center_url%% %%subscription_center_url%% %%unsub_center_url%% ENDIF </script>
<script runat="server" language="ampscript"> SET @function_filepath = CONCAT("Content Builder\assets\content_blocks\") SET @function_name = "hide_system_footer" SET @content = ContentBlockbyName(Concat(@function_filepath, @function_name)) OUTPUT(Concat(@content)) </script>
Reference Content via GUI or 2)
ContentBlockByName via AmpScript doesn't work. Does anyone know why or how to resolve this?
The objective is to be able to use either of the above two methods rather than disabling the check in Admin Settings or hard coding the snippet into the email.