Adding social networking icons into a WordPress theme looks like it would be simple but there are some more advanced parts of it.

I searched for tutorials but didn’t find too many that talked about how to make your own icons and links.

Step 1

Add this code into the end of your “style.css” file in your theme directory:

div.share a img {

padding: 5px;

}

div.share a:hover img {

background: #eeeeee;

border: solid 1px #cccccc;

padding: 4px;

}

NOTE: You have to paste this code into notepad because WordPress changes the ” into slanted ones.

Step 2

Open the “single.php” file in your theme directory and add this code:

<! START SOCIAL NETWORKING code >

<strong>Discover and Share</strong>

<p></p>

<div class=”share”>

<a href=”http://yourdomain.com/feed/” title=”" target=”_blank”><img src=”http://yourdomain.com/wp-content/themes/themename/img/sharing/feed.png” width=”55″ height=”57″ alt=”Feed” /> </a>

<a href=”http://www.reddit.com/submit?url=<?php echo get_permalink() ?>&t=<?php the_title(); ?>” title=”" target=”_blank”><img src=”http://yourdomain.com/wp-content/themes/themename/img/sharing/reddit.png” width=”55″ height=”57″ alt=”Reddit” /> </a>

<a href=”http://www.technorati.com/faves?add=<?php echo get_permalink() ?>” title=”" target=”_blank”><img src=”http://yourdomain.com/wp-content/themes/themename/img/sharing/technorati.png” width=”55″ height=”57″ alt=”Technorati” /> </a>

<a href=”http://digg.com/submit?phase=2&url=<?php echo get_permalink() ?>” title=”" target=”_blank”><img src=”http://yourdomain.com/wp-content/themes/themename/img/sharing/digg.png” width=”55″ height=”57″ alt=”Digg” /> </a>

<a href=”http://www.stumbleupon.com/submit?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>” title=”" target=”_blank”><img src=”http://yourdomain.com/wp-content/themes/themename/img/sharing/stumbleupon.png” width=”55″ height=”57″ alt=”Stumbleupon” /> </a>

<a href=”http://del.icio.us/submit?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>” title=”" target=”_blank”><img src=”http://yourdomain.com/wp-content/themes/themename/img/sharing/delicious.png” width=”55″ height=”57″ alt=”del.icio.us” /> </a>

<a href=”http://yourdomain.com/submit.php?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>” title=”" target=”_blank”><img src=”http://yourdomain.com/wp-content/themes/themename/img/sharing/designfloat.png” width=”55″ height=”57″ alt=”Design Float” /> </a>

</div>

<! END SOCIAL NETWORKING code >

NOTE: you have to change the “http://yourdomain.com” and “themename” to reflect your website and theme folder name.

Step 3

Upload your icons

Upload to: http://yourdomain.com/wp-content/themes/themename/img/sharing/

Here are the icons I use:

Right click and ( Save Image As… )

10 Responses

  1. Great tutorial. I like it
    Thanks you very much, keep it up !

  2. O Thats looks really simple and Easy, I’ll Try

  3. Chris says:

    Great tutorial, thanks for sharing. I’ve been meaning to do this myself. Nice blog, by the way!!

  4. Steely Dad says:

    I’ve tried everything and it’s not working. HELP!!!

  5. Camnio Media says:

    thanks for the tips on the social bookmarks.

  1. [...] Digg and others are a great source of feed back for your site and help build your search ranking. Add social networking icons to your WordPress theme so others can link back to you can help puss your site to new levels of [...]

  2. [...] Add Social Networking Icons to your Wordpress Blog – Tutorial explaining how to add your own links and icons to your Wordpress blog. [...]

  3. [...] Digg and others are a great source of feed back for your site and help build your search ranking. Add social networking icons to your WordPress theme so others can link back to you can help push your site to new levels of [...]

  4. [...] Digg and others are a great source of feed back for your site and help build your search ranking. Add social networking icons to your WordPress theme so others can link back to you can help push your site to new levels of [...]

Leave a Reply

CommentLuv Enabled

Spam Protection by WP-SpamFree