Hi DPers, Can somebody help me by telling how to add a link in my site such that it must appear only in the home page and not in all of the sub pages? Eg; If i add a link google.com in my site http://itsmylyf.com. The link google.com must appear only in the home page and not in sub pages like http://itsmylyf.com/about http://itsmylyf.com/post1 Please help. To Mods: I hope this is the right section to discuss about this. If it is not please remove this. Thanks.
Use a robots.txt and add something like this... Pages can Use “noindex†page meta tags. User-agent: * Disallow: /page name/ You can find more info here http://www.antezeta.com/blog/avoid-search-engine-indexing Thanks Brian
what blogscript are you using? Also, where is this link located? In the sidebar, footer etc? It shouldn't be to hard to do
The easiest thing to do is put the link in the context of the homepage and not in one of the sidebars.
@ Xwishmaster I'm using wordpress blog. The link is placed in sidebar. Is it possible to make one link in my blog to make as site wide and another as homepage only? @SFNUM8 Mate, couldn't understand that. What do you mean by context of the homepage?
Since you're using wordpress, you can add a text widget that will have your link. Add some code to show your link conditionally. For eg. If you want it on your home page only, you'd put <?php if (is_home()) { ?> <type your link here> <?php } ?> You might also need to get the exec-php plugin to get this to work. I can't remember for sure now if you actually need it. Another option you can explore is checking out the conditional widget plugin. I have it but have never actually used it. Crystite
@Crystite & Nystul Thanks mate. I think this code will help me. I have just used this method to make the link homepage only. can you tell me how can i confirm whether the link is only in homepage only?