![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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')." →</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')." →</a>";
echo "</p>";
}
|
|
#2
|
|||
|
|||
|
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
|
|||
|
|||
|
If I want to remove the "Read more" link completely do I edit the functions.php or the page, index, and home files?
|
|
#4
|
|||
|
|||
|
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 | |
|
|
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 |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us