Adding an IF/THEN Statement
-
So I am trying to add a simple PHP IF/THEN Statement to a page within the template, but it just keeps showing the code, even when I use the Raw HTML block. I simply want to output the shortcode of a file when a user is not logged in and then when they are logged in, show a different shortcode file.
How can I make this happen?
Hello,
Thank you very much for choosing our theme and for contacting us.
All the PHP snippets should be added to the functions.php file of the child theme.
Best Regards