How to Add the social Bookmarks Icons in WordPress without using any plugins

How to Add the social Bookmarks Icons in WordPress without using any plugins

All wordpress sites use the social bookmarks for sharing there content. For adding social bookmark they always use the wordpress plugins.
But that plugins will add some mysql quries and apache requests to your server. I recommend not to use these plugins.

How to Add the social Bookmarks Icons in WordPress without using any plugins

Just follow my steps:

1. Open single.php file from your wordpress theme.

just do one think, please assign class=”social_icons” to div.

<div >
<ul>

<ul>
	<li><a title="RSS" href="http://images.purabtech.in/feed" target="_blank" rel="nofollow"><img src="http://images.purabtech.in/rss_32.png" title="RSS" alt="RSS" /></a></li>
</ul>


<ul>
	<li>php the_permalink() ?>&title=<!--?php echo urlencode(the_title('','', false)) ?-->" title="del.icio.us"><img title="del.icio.us" src="http://images.purabtech.in/delicious_32.png" alt="del.icio.us" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>&title=<!--?php echo urlencode(the_title('','', false)) ?-->" title="StumbleUpon"><img title="StumbleUpon" src="http://images.purabtech.in/stumbleupon_32.png" alt="StumbleUpon" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>&title=<!--?php echo urlencode(the_title('','', false)) ?-->" title="Digg"><img title="Digg" src="http://images.purabtech.in/digg_32.png" alt="Digg" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>" title="TwitThis"><img title="TwitThis" src="http://images.purabtech.in/twitter_32.png" alt="TwitThis" /></li>
</ul>



<ul>
	<li>php the_permalink() ?>&title=<!--?php echo urlencode(the_title('','', false)) ?-->" title="Mixx"><img title="Mixx" src="http://images.purabtech.in/mixx_32.png" alt="Mixx" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>" title="Technorati"><img title="Technorati" src="http://images.purabtech.in/technorati_32.png" alt="Technorati" /></li>
</ul>


<ul>
	<li>php?u=<!--?php the_permalink() ?-->&t=<!--?php echo urlencode(the_title('','', false)) ?-->" title="Facebook"><img title="Facebook" src="http://images.purabtech.in/facebook_32.png" alt="Facebook" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>&h=<!--?php echo urlencode(the_title('','', false)) ?-->" title="NewsVine"><img title="NewsVine" src="http://images.purabtech.in/newsvine_32.png" alt="NewsVine" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>&title=<!--?php echo urlencode(the_title('','', false)) ?-->" title="Reddit"><img title="Reddit" src="http://images.purabtech.in/reddit_32.png" alt="Reddit" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>&title=<!--?php echo urlencode(the_title('','', false)) ?-->" title="Google"><img title="Google" src="http://images.purabtech.in/google_32.png" alt="Google" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>&title=<!--?php echo urlencode(the_title('','', false)) ?-->&source=<!--?php bloginfo('pingback_url'); ?-->&ary=<!--?php the_excerpt(); ?-->" title="LinkedIn"><img title="LinkedIn" src="http://images.purabtech.in/linkedin_32.png" alt="LinkedIn" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>&title=<!--?php echo urlencode(the_title('','', false)) ?-->" title="co.mments"><img title="co.mments" src="http://images.purabtech.in/co.mments.gif" alt="co.mments" /></li>
</ul>


<ul>
	<li>php the_permalink() ?>&=<!--?php echo urlencode(the_title('','', false)) ?-->" title="YahooMyWeb"><img title="YahooMyWeb" src="http://images.purabtech.in/yahoobuzz_32.png" alt="YahooMyWeb" /></li>
</ul>



<ul>
	<li>php echo urlencode(the_title('','', false)) ?>&body=<!--?php the_permalink() ?-->" title="E-mail this story to a friend!"><img title="E-mail this story to a friend!" src="http://images.purabtech.in/email_32.png" alt="E-mail this story to a friend!" /></li>
</ul>

</ul>
</div>

Open style.css file from your theme folder and put following code:

.social_icons{ clear:both; }
.social_icons ul li {float:left; padding-right:8px;}
How to Add the social Bookmarks Icons in WordPress without using any plugins
How to Add the social Bookmarks Icons in WordPress without using any plugins

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.