Title: Needs Re Coding for Header file &#8211; Header.php
Last modified: August 20, 2016

---

# Needs Re Coding for Header file – Header.php

 *  Resolved [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/)
 * Following is the HEADER.PHP Code. AND BELOW THAT IS THE Page Template CODE Name
   snarfer.php which I created and saved in the Theams folder. Now I want that due
   to <?php get_header(); ?> in Page Template file the header.php files show the
   Menu links and website header logo on the page. Which I want to block for this
   particular SNARFER.PHP PAGE. I think we need to do some changes or add a code
   in HEADER.PHP (PLEASE HELP – Thanks in advance) NOTE: I only want to hide or 
   block the header image and menu links only and nothing else for the Snarfer.php(
   Page Template) AS I USE PLUGINS IN THE SITE AND I WANT ITS FUNCTIONS SHOULD NOT
   BE DISTURBED.
 * _[code moderated - please follow the guidelines in [http://codex.wordpress.org/Forum\_Welcome#Posting\_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   when posting code]_
 * That the page template which i have made with theh following code. Page Template
   Name snarfer.php (Which i saved in the templates directory)
 * _[dito]_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/page/2/?output_format=md)

 *  [sidgoyal1](https://wordpress.org/support/users/sidgoyal1/)
 * (@sidgoyal1)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262494)
 * Create a new file called
 * header2.php and remove whatever you want to remove. Keep whatever you want to
   keep.
 * The in your new template file
    snarfer.php
 * instead of using <?php get_header(); ?>
 * use
 * <?php include(‘header2.php’); ?>
 * and that will work
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262497)
 * Thanks for quick reply Sid Goyal. But as I am using the plugins in the site and
   I want the plugin for this page template to work for snarfer.php so what code
   i should include in the header2.php so that the plugin is activated for snarfer.
   php. Any inputs. Sorry for trouble.
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262500)
 * Just in simple words SidGoyal want to know what i need to write in the header2.
   php so no to include the header logo and menu links but at the same time the 
   plugins also work for this snarfer page. If you can first tell me code to hide
   the header logo and menus logo from the header.php i think this will help and
   the plugin will work automatically. Thanks for all your help and your valuable
   time. ….. Pankaj
 *  [sidgoyal1](https://wordpress.org/support/users/sidgoyal1/)
 * (@sidgoyal1)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262501)
 * Plugins will work as long as you have <?php wp_head(); ?> command in your header
   file header2.php and <?php wp_footer(); ?> in your footer file
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262503)
 * Hey Sidgoyal. That worked wonders. How I should thank you. I was banging my head
   for the last one week. I CAN ONLY SAY TO ALL. “SIDGOYAL ROCKS” – Hope some day
   if Gods give me a chance I will like to help in some way. God bless.
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262504)
 * One last help is there a way to use a script for PAGE Forward in this snarfer.
   php which i can use
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262506)
 * Plus how i can make the image which is included to point to a certain domain 
   to make it hyper link.
 * The image code in the snarfer.php file is <?php include(‘header2.php’); ?>
 * how to make it hyperlinked.
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262507)
 * I hyperlinked the image myself.
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262508)
 * Just need to know any url forward code i can use in this snarfer.php Sid.
 *  [sidgoyal1](https://wordpress.org/support/users/sidgoyal1/)
 * (@sidgoyal1)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262509)
 * Pankaj
 * Thanks for the complements. I did not understand your question regarding “page
   forward”.
 * also, image can be hyperlinked the same way you hyperlink text. Perhaps i misunderstood.
 *     ```
       <a href="http://google.com"><img src="image source here"></a>
       ```
   
 *  [sidgoyal1](https://wordpress.org/support/users/sidgoyal1/)
 * (@sidgoyal1)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262510)
 * Well, if you wish to forward to a url, I usually use this javascript
 * <script>
    window.location=”[http://google.com&#8221](http://google.com&#8221);;
   </script>
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262511)
 * Sid what about if we want to forward it after say few seconds.
 *  [sidgoyal1](https://wordpress.org/support/users/sidgoyal1/)
 * (@sidgoyal1)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262514)
 * Here you go
 *     ```
       <script>
       setTimeout("redirect()",6000);
   
       function redirect()
       {
       window.location="http://google.com";
       }
   
       </script>
       ```
   
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262518)
 * Sid Goyal Rocks!!!! Thanks Dude.
 *  Thread Starter [pankajzone](https://wordpress.org/support/users/pankajzone/)
 * (@pankajzone)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/#post-2262525)
 * Sid sorry to ask you one more question. As I had created a Page Template file
   Sanrfer.php and saved it in the template folder.
 * So how to make new templet files and with what names i can make them is there
   any limit?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/page/2/?output_format=md)

The topic ‘Needs Re Coding for Header file – Header.php’ is closed to new replies.

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [header file](https://wordpress.org/support/topic-tag/header-file/)
 * [header.php](https://wordpress.org/support/topic-tag/header-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 2 participants
 * Last reply from: [sidgoyal1](https://wordpress.org/support/users/sidgoyal1/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/needs-re-coding-for-header-file-headerphp/page/2/#post-2262547)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
