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
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.
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
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
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.
One last help is there a way to use a script for PAGE Forward in this snarfer.php which i can use
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.
I hyperlinked the image myself.
Just need to know any url forward code i can use in this snarfer.php Sid.
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>
Well, if you wish to forward to a url, I usually use this javascript
<script>
window.location=”http://google.com”;
</script>
Sid what about if we want to forward it after say few seconds.
Here you go
<script>
setTimeout("redirect()",6000);
function redirect()
{
window.location="http://google.com";
}
</script>
Sid Goyal Rocks!!!! Thanks Dude.
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?