I have a general header.php file in my site that contains my site menu. I want to include a div layer above the site menu - but only on the front page. Can I do this using PHP... if "on front page" then "<div></div>"
...I obviously don't really know any PHP, but you get the idea.
Hope sombody can help me out!
Best,
Anders
Displaying a div layer only in the front page of my site
Moderator: General Moderators
-
apa@imagix.dk
- Forum Newbie
- Posts: 2
- Joined: Fri Oct 01, 2010 3:12 am
- DigitalMind
- Forum Contributor
- Posts: 152
- Joined: Mon Sep 27, 2010 2:27 am
- Location: Ukraine, Kharkov
Re: Displaying a div layer only in the front page of my site
frontpage.php
header.php
Did I get you wrong?
Code: Select all
define('FRONT_PAGE', TRUE);
require 'header.php';
...
Code: Select all
if (defined('FRONT_PAGE')) {
echo '<div></div>';
}
...
-
apa@imagix.dk
- Forum Newbie
- Posts: 2
- Joined: Fri Oct 01, 2010 3:12 am
Re: Displaying a div layer only in the front page of my site
You got me just right - I works perfectly.
Thanks a million...
Thanks a million...