Created
May 22, 2019 00:33
-
-
Save techmuzz/0dce9001d3a3006e2ac53387811047a9 to your computer and use it in GitHub Desktop.
Add An Avatar Beside Site Title In Genesis - https://www.techmuzz.com/how-to/wordpress/add-an-avatar-beside-site-title-in-genesis/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function avatar_with_site_title() { | |
echo get_avatar( '[email protected]', 150 ); | |
} | |
add_action( 'genesis_site_title', 'avatar_with_site_title', 0 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.title-area img { | |
margin-top: auto; | |
margin-right: 20px; | |
margin-bottom: auto; | |
border-radius: 50%; | |
display: block; | |
} | |
.site-title { | |
line-height: 1.8; | |
font-size: 32px; | |
font-size: 3.2rem; | |
font-weight: 400; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment