I want to put some PHP on the home page only. In my advanced theme, I have this code:
if ($this->template=='/* what to put here? */')
{
//code
}
Right before your if, use the following to find out:
echo $this->template;
That will show you what's in the variable for any page.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.