Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Where to insert robots meta tags


  #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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you can just add the html code
HTML Code:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
at ATO->Add HTML/CSS Inserts->HTML Inserts: Header
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you could add it in towards the end of bfa_meta_tags.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 04:50 AM.


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