StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 09-14-2009, 08:32 PM
HoboChilli HoboChilli is offline
Registered User
Pro Plus Member
 
Join Date: Sep 2009
Posts: 55
Default removing nofollow from functions.php

After reading the recent change that Google and other search engines changed the ability of nofollow to "PR shape" your site, I like to disable nofollow. Anyone know how I can do it? I broke my site when I tried editing functions.php by adding "/*", "*/", " in front of <a and after href="'; surrounding the nofollows

Code:
   if (strlen($_GET['p']) > 0) {
      echo "

";
      echo $content;
      echo "<a rel='nofollow' href='";
      the_permalink();
      echo "'>".__('Read More', 'studiopress')." &rarr;</a>";
      echo "</p>";
   }
   else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
        $content = substr($content, 0, $espacio);
        $content = $content;
        echo "

";
        echo $content;
        echo "...";
        echo "<a rel='nofollow' href='";
        the_permalink();
        echo "'>".$more_link_text."</a>";
        echo "</p>";
   }
   else {
      echo "

";
      echo $content;
      echo "<a rel='nofollow' href='";
      the_permalink();
      echo "'>".__('Read More', 'studiopress')." &rarr;</a>";
      echo "</p>";
   }
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Nofollow Larke General Discussion 13 01-01-2010 06:06 AM
damaged Theme functions ( functions.php) andymac71 General Discussion 4 05-01-2009 12:06 PM


All times are GMT -5. The time now is 02:16 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.