The idea is that there is code doing something somewhere ...
You want something to happen or not happen on the main home page ...
Find the chunk of current code ... make sure you know the starting point and ending point of the code ...
$this_is_home_page
identifies if you are on the Home Page ...
Code:
if ($this_is_home_page) {
// do something I am on home page
} else {
// do something else I am not on home page
}
So say you want to control a banner ...
Find the code that creates the banner process ...
Find the end of the code that ends the banner process ...
If you add the:
Code:
if ($this_is_home_page) {
above the banner code ...
banner code is here
more banner code is here
more banner code is here
and then you close the IF for the $this_is_home_page after the end of the banner code:
} // end of the $this_is_home_page code
then the code inside the new IF can only run when on the home page ...