hide header

Started on the old forum in December 2018 · view the original in the archive · old links redirect here

2 replies · 125 views · started 7 years ago · 1 min read

2 participants
omshankar Junior · 17 posts #1

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

something else Fellow · 2,296 posts #2

Something on the lines of:

if(!empty($_REQUEST))
{
    include('header1.php');
}
else
{
    include('header.php');
}
omshankar Junior · 17 posts #3

Thanks bro. It works like a charm. 🙂 You are awesome. 🙂

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close