Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] Where to insert robots meta tags


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 28, 2010, 12:10 AM
pyoterguru
 
36 posts · Mar 2010
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...

Last edited by pyoterguru; Mar 28, 2010 at 01:29 AM.
  #2  
Old Mar 28, 2010, 05:04 PM
juggledad's Avatar
juggledad
 
22,161 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
you can just add the html code
HTML Code:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
at ATO->Add HTML/CSS Inserts->HTML Inserts: Header
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #3  
Old Mar 30, 2010, 08:10 AM
pyoterguru
 
36 posts · Mar 2010
Thanks for your reply.

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

How would I do it?
  #4  
Old Mar 31, 2010, 05:10 AM
juggledad's Avatar
juggledad
 
22,161 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
you could add it in towards the end of bfa_meta_tags.php
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #5  
Old Mar 31, 2010, 02:07 PM
Velma
 
272 posts · Feb 2009
I created a Robots.txt file, and added pages I wanted excluded there. Will that work OK?

Velma
  #6  
Old Apr 2, 2010, 06:18 AM
pyoterguru
 
36 posts · Mar 2010
Quote:
Originally Posted by juggledad
you could add it in towards the end of bfa_meta_tags.php
Thanks a lot.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] robots: can't turn off noindex, nofollow dickeson Atahualpa 3 Wordpress theme 2 Feb 28, 2010 03:54 PM
Meta tags for Google searches cmagwood Atahualpa 3 Wordpress theme 0 Feb 2, 2010 11:40 AM
Looking for "robots" code in header jenb Header configuration & styling 1 Oct 11, 2009 10:35 AM
[SOLVED] Lijit Search, robots.txt, and /Disallow Wimbledon Plugins & Atahualpa 2 Oct 3, 2009 08:24 PM
H1 and H2 tags dogwoad Header configuration & styling 2 Jun 12, 2009 12:21 PM


All times are GMT -6. The time now is 09:40 AM.


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