Add PHP snippet in Graphic Template
Autor: Denis I.
Visitado 2373,
Seguidores 2,
Compartilhado 0
I would like to know if it's possible to add a small piece of PHP code in Step 1 Edit Graphic Template. I'm creating my own member system and using X5 V9 as a template. This piece of code will check:
If the user is signed in, it will display their username and logout buttons OR
It will display Login and Sign Up buttons.
I want to put this in the graphic template section so it will appear on every page. Does that HTML code box accept PHP?
Publicado em
Hello Denis,
Yes you can add php code in the HTML Box. You only need to change the extensions of the page to be php so the code is correctly interpreted when run on the server.
Please feel free to write back if you need more information.