Created
May 22, 2019 00:32
-
-
Save techmuzz/261c4e46ef0d49aca660a577f3bbc5d6 to your computer and use it in GitHub Desktop.
Add An Image Beside Site Title In Genesis - https://www.techmuzz.com/how-to/wordpress/add-an-image-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 logo_with_title() { | |
$imageUrl = get_stylesheet_directory_uri() . '/images/site_logo.png'; | |
printf( '<a href="%s"><img src="%s" /></a>', trailingslashit( home_url() ), $imageUrl ); | |
} | |
add_action( 'genesis_site_title', 'logo_with_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 { | |
border-radius: 50%; | |
margin-right: 20px; | |
} | |
.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