Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Where to insert robots meta tags (http://forum.bytesforall.com/showthread.php?t=6493)

pyoterguru Mar 28, 2010 12:10 AM

[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...

juggledad Mar 28, 2010 05:04 PM

you can just add the html code
HTML Code:

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
at ATO->Add HTML/CSS Inserts->HTML Inserts: Header

pyoterguru Mar 30, 2010 08:10 AM

Thanks for your reply.

But what if I need to exclude some static subpages from this tag?

How would I do it?

juggledad Mar 31, 2010 05:10 AM

you could add it in towards the end of bfa_meta_tags.php

Velma Mar 31, 2010 02:07 PM

I created a Robots.txt file, and added pages I wanted excluded there. Will that work OK?

Velma

pyoterguru Apr 2, 2010 06:18 AM

Quote:

Originally Posted by juggledad (Post 28891)
you could add it in towards the end of bfa_meta_tags.php

Thanks a lot.


All times are GMT -6. The time now is 11:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.