Cool Code Snippets to add Genesis (WordPresss) – No Plugin Needed

Here is amazing things u can Add to your genesis / thesis or normal wordpress blog without needing a plugin.

genesis editing without any 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');
Must Read Today : How to add readmore with thumbnail / numerical Pagination on Magazine Child Theme without a plugin
  • 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:

a.

Log in to your WordPress admin area. by entering your site like this in your address bar http://yourdsite.com/wp-admin

b. Click on ‘Appearance’ in the left side bar
c. Click on ‘Editor’ in the list that appears below ‘Appearance’
d.Click on ‘Header’ in the list of ‘Templates’ listed on the right side (that is the header.php )
e. Locate the close head tag (</head>) in the header.php file displayed  (you can do this by pressing ctrl+f on your keyboard and entering </head>)
f. Paste your Tynt script tag right before the close head tag and click on ‘Update File’
 
Note that for studiopress genesis framework child theme / thesis you need edit the parent theme by locating the little notification by the top right asking you to select theme ==> choose genesis from the list and locate header.php

Templates

This child theme inherits templates from a parent theme, Genesis. click on the linked genesis

ALSO READ
5 Reasons Why Google Favours Blogger over Wordpress
Must Read: 5 Unique ways to slash Down Your Alexa Rank In Seconds
  • Social Networks / Social Bookmarking site sharing icons / widgets without a plugin :

 
to do this simply visit any of the the third party sites below
a) http://www.addthis.com/get/sharing
b) http://support.sharethis.com/customer/portal/articles/464452-integration-with-a-website
 
Visit this direct links above and copy your code after customizing it to suit your site layout , open your editor and go to single.php to add your code either above / below content , for genesis use the simple hook , for other premuim themes use the default ads integration to add it below post title or above post comment (below post content ) , other users can simply use the “quick adsense plugin” to add it to any position of choice .
 
 
 
 
Must Read : How to remove the Single Featured Post from eleven40 Child Theme on Genesis Framework
 
 
  • 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 .

To achieve this copy the entire code below and add it to the last line of your function.php which can be located by navigating to edit from your wordpress dashboard and clicking function.php
 
Here is the code to copy
 

/**
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

ALSO READ
How to Properly Setup Online Stores with WordPress

 
I will update you with more amazing tools you can add without plugin on your wordpress site when I have time again please reply to this post with yours if you wanna help grow the list
Previous ItemIPhone and IPad Apps For Real Estate Businesses : Must-have Apps for iOS Devices
Next ItemHow to Unlock Huawei e303 and Zte mf631 Modems for Free
Obasi Miracle
Obasi Miracle is one of the brains behind 3rd Planet Techies. A webdesign afficionado and IT Support brain-box, he flourishes and revel in helping many-a-techies in their aspiration to become the best they can.

2 COMMENTS

  1. 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

LEAVE A REPLY

Please enter your comment!
Please enter your name here