[Theme: Twenty Eleven] Gravatar integration
-
I love gravatar integration in WordPress. But avatars are visibile only into the comments.
With this patch i have add them in the index and post too.
Is there any possibility to add it in the standard code?
Can you make optional this functionality?
It’s very nice, for multi-author blog like mine.
diff -ur /var/www/html/blog/wp-content/themes/twentyeleven/index.php /var/www/html/blog/wp-content/themes/twentyeleven.orig/index.php
--- /var/www/html/blog/wp-content/themes/twentyeleven/index.php 2012-05-29 12:00:48.892802315 +0200
+++ /var/www/html/blog/wp-content/themes/twentyeleven.orig/index.php 2012-05-29 12:01:07.691068461 +0200
@@ -23,6 +23,7 @@<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
+ <?php echo get_avatar( get_the_author_email(), '80' ); ?><?php get_template_part( 'content', get_post_format() ); ?>
Only in /var/www/html/blog/wp-content/themes/twentyeleven.orig/: index.php.orig
diff -ur /var/www/html/blog/wp-content/themes/twentyeleven/single.php /var/www/html/blog/wp-content/themes/twentyeleven.orig/single.php
--- /var/www/html/blog/wp-content/themes/twentyeleven/single.php 2012-06-01 10:22:25.052452285 +0200
+++ /var/www/html/blog/wp-content/themes/twentyeleven.orig/single.php 2012-06-01 10:22:33.340573961 +0200
@@ -13,6 +13,8 @@
<div id="content" role="main"><?php while ( have_posts() ) : the_post(); ?>
+ <?php echo get_avatar( get_the_author_email(), '80' ); ?>
+<nav id="nav-single">
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
Only in /var/www/html/blog/wp-content/themes/twentyeleven.orig/: single.php.orig
- The topic ‘[Theme: Twenty Eleven] Gravatar integration’ is closed to new replies.