Forum Subject: How to test in header whether site is on Home (ie front) Page?
Posted on: 11/25/21 04:45am By: odieolson
How can I test in the header.thtml (via PHP) whether the site is on the front page? I want to display an image, but only on the front page. I know I can do it in a static page centerblock, but that forces white space around the image. I want it flush against everything. If I place it in the header, it displays nicely, but on every page. I only want it on the front page.
Any ideas?
Re: How to test in header whether site is on Home (ie front) Page?
Posted on: 11/25/21 07:28am By: Laugh
Take a look at the Geeklog Caching Template Library Wiki page: