« Craigslist Guide and History. | Main | You-Cubez – Do you have your cube ! »
Only homepage link - Wordpress/PHP files.
By MeetHere | May 4, 2007
There are few advertisers who insist on buying links - Only Homepage and not sitewide.
So if you want to show some text/banner ads only on homepage on your wordpress blog, or any other file (e.g. footer.php ) then here is the simple coding you will need to do.
For wordpress blog :
Change the link yourdomain.com to your desired link.
File - footer.php
function custom_footer_notice()
{ if ( is_home() )
{
?>Copyright 2007 Webmasters and SEO blog - Change it
}
else
{
display_copyright_notice()
}
}
remove_action(’display_copyright_notice’, ‘display_copyright_notice’);
add_action(’display_copyright_notice’, ‘custom_footer_notice’);
For any PHP file, like footer.php
{if $category.ID eq 0} Change it {/if} Hope this will help to some people atleast..
If you know more methods, please post in the comments. ![]()
Popularity: 3% [?]
Topics: Link Building |



May 16th, 2007 at 6:02 am
Hi,
I don’t know more methods but was in search for one.
Thanks for sharing it in here… Thats really helpful to do link exchange or for placing ad on our wordpress blog.
Thanks
Here’s my little site I’m gonna blog about Vehicles and i hv used Wordpress for it.