hide header

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • hide header

    Hi Bro.
    I am using script. And its index page is making all inner pages. So, I placed header1.php in index.php and all inner pages including homepage opens with header1.php . I am attaching index page. I am using ad code in header, so ads are showing on all pages. But I do not want to show ad code in homepage. Is there any option to hide adcode in homepage only?
    In this index page header is included. like include('header1.php');

    Is there any option to hide header1.php in homepage and show only header.php in homepage and all other pages show header1.php
    Last edited by omshankar; 03.12.18, 02:06.

  • #2
    Something on the lines of:
    PHP Code:
    if(!empty($_REQUEST))
    {
        include(
    'header1.php');
    }
    else
    {
        include(
    'header.php');

    Comment


    • #3
      Thanks bro. It works like a charm.
      You are awesome.

      Comment

      Working...
      X