Here is the snippet about this small things. Adding My Avatar Before The Site Title
1 2 3 4 5 6 7 8 |
add_action( 'genesis_site_title', 'gd_add_my_avatar', 9 ); function gd_add_my_avatar() { printf( '<div %s>', genesis_attr( 'my-avatar' ) ); echo get_avatar( 'ENTER YOUR EMAIL ID HERE', 64 ); echo '</div>'; } |
Here 64 is the avatar size. You will adjust the avatar size by editing this value. Adding Site Logo Before The Site Title
1 2 3 4 5 6 7 8 9 10 11 12 |
add_action( 'genesis_site_title', 'gd_add_site_logo', 9 ); function gd_add_site_logo() { $logo = 'ENTER YOUR LOGO PATH HERE'; printf( '<div %s>', genesis_attr( 'site-logo' ) ); printf( '<a href="%s" title="%s"><img src="%s" alt="%s"/></a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), $logo, esc_attr( get_bloginfo( 'name' ) ) ); echo '</div>'; } |
Note: You will add some custom CSS in your style.css file for better placement.