In my tutorials requests Trello board, a user asked:
Hi Sridhar, could you make a tut regarding how to have BOTH site site title AND logo side by side on header ?
In this tutorial, I share a modification of the code from Theme Logo in Genesis article to display the site title and image logo (vs as a background) using the WordPress' Theme Logo feature and to its right - both linking to the site's homepage.
Sample generated HTML:
Written for and tested in Genesis Sample 2.3.0
Step 1
Edit child theme's functions.php
.
a) Replace
// Add support for custom header.
add_theme_support( 'custom-header', array(
'width' => 600,
'height' => 160,
'header-selector' => '.site-title a',
'header-text' => false,
'flex-height' => true,
) );
with
// Add support for custom logo.
add_theme_support( 'custom-logo', array(
'width' => 600,
'height' => 160,
'flex-width' => true,
'flex-height' => true,
) );
b) Add
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Hi Sridhar,
I tried using this on HelloPro and it didn’t work.
Help Please?
Stacey
For Hello! Pro (1.5.1), make these changes:
a) In functions.php replace
with
b) Replace the entire CSS from Step 2 with
Would love to use this tutorial with Academy Pro. So far, no joy.
I removed
//’header-selector’ => ‘.site-title a’,
‘header-text’ => false //
Now the logo image is a background image for Site Header div.
So far no joy with CSS changes
Sorry for the delay.
Follow https://sridharkatakam.com/site-title-image-logo-academy-pro/.
Hi Sridhar,
I am tying to do this with the Monochrome Pro theme but with the logo on left and site title next to it. Do you have a tutorial for this?
Thanks!
Follow https://sridharkatakam.com/logo-left-site-title-next-monochrome-pro/.
[…] the comments section of Site Title – Image Logo in Genesis tutorial a user […]
[…] This tutorial provides Academy Pro specific instructions to implement Site Title – Image Logo. […]