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.

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>";
   }
  #2  
Old 09-15-2009, 12:22 AM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default Re: removing nofollow from functions.php

Hi,

This is PHP code, not HTML, which is why what you tried broke your site.

Just remove rel='nofollow' from the functions.php code you posted.

Hope this helps.
__________________
Ade
Themessence - Studiograsshopper

WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget

Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL!
Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort.
  #3  
Old 09-15-2009, 11:02 AM
HoboChilli HoboChilli is offline
Registered User
Pro Plus Member
 
Join Date: Sep 2009
Posts: 55
Default Re: removing nofollow from functions.php

If I want to remove the "Read more" link completely do I edit the functions.php or the page, index, and home files?
  #4  
Old 09-15-2009, 01:40 PM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default Re: removing nofollow from functions.php

You would need to remove it from the functions.php code.
__________________
Ade
Themessence - Studiograsshopper

WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget

Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL!
Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort.
 

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 01:02 AM.

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