ThemeShaper Forums » Thematic

[closed]

Remove noindex tag from author pages

(3 posts)
  • Started 8 years ago by jeff.long
  • Latest reply from jeff.long
  • This topic is not resolved
  1. I have a site that indexing the author pages would be hugely beneficial, but I can not figure out how to make it happen and remove the:

    <meta name="robots" content="noindex,follow" />

    Any help would be appreciated.

    Thanks.

    Posted 8 years ago #
  2. dig around in /library/extensions/header-extensions.php to see what filers or hooks are available. i just did and i find there is a thematic_create_robots filter. looks perfect.

    so in your functions.php you'd

    function kia_author_robots($content){
      if (is_author()){
         $content = "\t" . "<meta name=\"robots\" content=\"index,follow\" />" . "\n\n";
       }
    return $content;
    }
    add_filter('thematic_create_robots','kia_author_robots');

    totally untested. ymmv

    Posted 8 years ago #
  3. Awesome. Thanks. I will try it out.

    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.