All posts in Snippets

Quick Tip: Display avatar for currently logged in user

How about displaying the avatar for current logged in user?

By Default it comes with a get_avatar function. Adding this snippet to your wordpress template will display the currently logged in users avatar in your theme.

To adjust the side of the avatar change the number 64 within the get_avatar function default is 96 and max size is 512. Read more…

5 Most Useful Adsense Hacks for WordPress

WordPress is the platform of choice for most bloggers, and WordPress hacks is one of the most popular topics. In this article, I’m going to share some of the useful WordPress Hacks to incorporate adsense into your theme. Read more…

Adding a Comment Policy in Thesis WordPress Theme

Have you ever thought of adding comment Policy? Providing guidelines for how visitors should take part in the discussion?

In this post I’m going to show you, how to add a comment policy in thesis theme. Read more…

Serve IE6 Visitors the Default WordPress Theme

IE6 is somehow still some users browser of choice, or are restricted by work computers that still run IE6.

This snippet will force IE6 users to view the default template leaving your design viewable by users with modern browsers only, thus saving time on IE6 bug fixing. Read more…

Automatically Replace words by Affiliate Links

There are many paid plugins that can easily replace  the words by affiliate links but in this post I’d like to share a cool piece of code that can do the same thing for FREE.

It do not give you as much control as the plugins does, but in most cases this code should fit your needs.

Read more…