[SOLVED] Where to insert robots meta tags
Hi,
In what ATA php file & specific location in that file do I insert the following codes to tell spiders "not to index static non-post pages" of my blog (such as About, Contact)? <?php if(is_single() || is_page() || is_home()) { ?> <meta name=”robots” content=”all,index,follow” /> <?php } else { ?> <meta name=”robots” content=”noindex,follow” /> <?php }?> Also, would this code not come into conflict with Meta Robots plug-in? Thanks... |
you can just add the html code
HTML Code:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> |
Thanks for your reply.
But what if I need to exclude some static subpages from this tag? How would I do it? |
you could add it in towards the end of bfa_meta_tags.php
|
I created a Robots.txt file, and added pages I wanted excluded there. Will that work OK?
Velma |
Quote:
|
All times are GMT -6. The time now is 02:28 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.