Here is amazing things u can Add to your genesis / thesis or normal wordpress blog without needing a plugin.
For the benefit of our readers who doesn’t know the effect of making external links nofollow on your blog I’m gonna tell you this one thing that it preserves your page rank and also adds high SEO value to your blog by not dashing the link juice away :
to make external links in your wordpress blog a nofollow one just use the code below —- this works will all framework and platform including studiopress genesis , thesis , theme forest & theme junkie premium themes and free wordpress theme as well ..
Just backup your current theme function.php via cpanel or filezilla ==> then open your dashboard and go to appearance –> Editor ==> click Theme Functions (functions.php). Now copy below php code and paste it at the last of the functions.php file, and click on save button.
// Ads the rel nofollow tag To all External Links
function wp_nofollow($content)
{return preg_replace_callback('/<a[^>]+/', 'wp_nofollow_callback', $content);
}function wp_nofollow_callback($matches)
{$link = $matches[0];
$site_link = get_bloginfo('url');
if (strpos($link, 'rel') === false)
{$link = preg_replace("%(href=S(?!$site_link))%i", 'rel="nofollow" $1', $link);
}elseif (preg_match("%href=S(?!$site_link)%i", $link))
{$link = preg_replace('/rel=S(?!nofollow)S*/i', 'rel="nofollow"', $link);
}return $link;}
add_filter('the_content', 'wp_nofollow');
-
Protect Your Content from plagiarism by adding Auto- read more to contents /keywords copied from your blog without any plugin:
–Know what users copied from your blog and who is actually linking back to you with Tynt
: To add this feature you need log in to your http://www.tynt.com account and create the option that suits your sites need including options that favors blog whose images are right protected … after creating your code you need:
Log in to your WordPress admin area. by entering your site like this in your address bar http://yourdsite.com/wp-admin
Templates
This child theme inherits templates from a parent theme, Genesis. click on the linked genesis
-
Social Networks / Social Bookmarking site sharing icons / widgets without a plugin :
-
How to add google adsense code or any other [javascript / html] codes below post content in genesis framework without using a plugin :
As stated in this title you can add what ever html or JavaScript code you need using this hack without any plugin at all, works with all genesis child themes .
/**
obasimvilla.com/amazing-things-u-can-add-to-your-genesis-thesis-normal-wordpress-blog-without-a-plugin/
*/
function ad_after_posts() {
if ( is_single() ) {
?>
<!-- adsense code starts -->
replace this very line with your main adsense / JavaScript code
<!-- adsense code ends -->
<?php
}
}
add_action('genesis_after_post_content', 'ad_after_posts');
-
How to add mailchimp subscription op-tin form to after post content in genesis without a plugin ;
This is just a very simple hack, anyone can do it
Is there a way for the no follow script to EXCLUDE specific URLS (that you may own for example)
Yeah, you can use the “ultimate nofollow” plugin to achieve that