It’s easy to add or change existing gravatars using this snippet of code. If you’re looking to have a couple options at once, simply duplicate the lines in the function with “$myavatar” and then rename the variable. Now there is absolutely no excuse for letting the Mystery Man into your comment section ever again. He’s had a good run, but his retirement is long overdue.
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Each WordPress theme has the option of including functions.php. This file is responsible for loading any additional options for the theme in the WordPress dashboard. The default Kubrick theme for instance, would use functions.php to change the header colors. We’ll be using it to specify a brand new avatar for use with the current theme. Start by opening up the functions.php file in your theme directory. If you do not see one, make it now. Depending on your current theme, there may already be some code involved. Ignore it, our code will be independent from the rest of the code.
Popularity: 1% [?]