Today we’re talking about logos, specifically how to add your logo to a Genesis child theme.
Before we get started, I’m going to make you do a quick test. Don’t worry – it’s easy.
Does Your Theme Support a Custom Header?
This is the question you need to answer before we move on and it’s easy to find out. Go to your WordPress dashboard, look at the Appearance menu and see if Header is listed as an option.
If the answer is YES, that means your theme has added support for a custom header. You don’t need this tutorial since you’ve got built-in support for a header image. So there, it’s like I just gave you 5 free minutes. You’re welcome!
If the answer is NO, that means I’m about to teach you how to add a logo. You don’t get the 5 free minutes, but you DO get knowledge.
So, NO crowd proceed with me. YES crowd, go enjoy the rest of your day and we’ll catch you next time.
Configure the Header in Genesis Theme Settings
Genesis themes without support for a custom header come with a nifty option to specify a dynamic text title or an image logo.
Select “Image logo” from the drop-down and don’t forget to save your settings before leaving the page.
Now You’re Primed and Ready to Add a Logo
Step 1.
You need to upload your logo file to the server. You can either do this via the WordPress Media uploader OR you can put your logo in your theme’s images folder. The latter way is a more logical option since the Media Library should be used for content and your theme’s images folder should hold design elements.
Whichever you choose, grab the URL to your image. You’ll need it shortly.
Step 2.
So far what I’ve discussed applies to any Genesis child theme. From here on out I’m going to get specific with some code examples that you may need to tweak, depending on what child theme you’re using.
For this example, I’ll show you how to add a logo to the Utility Pro theme.
Open up the theme’s style.css file in a text editor.
We’re going to use the CSS background property to show our image. We need to identify where in the CSS we should show the logo.
To do that, I recommend using a tool Chrome’s Developer Tools to “inspect” the code.
Step 3.
View your site in a browser, hover your mouse over the site title and right-click. From there click “inspect” to view the underlying CSS.
Now you should be viewing the HTML and corresponding CSS behind your site title. Using the Utility theme as an example, this is what it looks like:
Notice the site title appears within a div with the title-area
class. When you changed your theme settings to allow an image logo instead of dynamic text, you get a little bonus CSS. Can you see it?
It’s .header-image .title-area
– That’s the MONEY. That’s the CSS class we want to target for our background.
title-area
in your theme, too. As always, there’s a chance your theme is weird and you’ll look for a different class. 😉Step 4.
We’re getting close. Can you feel it?
Copy the URL for your image file you grabbed in Step 1. Head over to your style.css file you opened in Step 2. Find the appropriate CSS class you identified in Step 3.
In addition to the other attributes already in your stylesheet for .header-image .title-area
add this:
.header-image .title-area {
background: url(http://yourwebsite.com/logo.png) no-repeat;
}
To get a better understanding of how the background property works in CSS (and various attributes you can use), read this.
Don’t forget to save your style.css file and upload it to the server!
Step 5.
Refresh your browser and reward yourself. You *should* see your logo at this point. It’s possible that your logo is cut off (in which case you’ll need to tinker with the height and width properties).
Want More fun with logos?
Why choose between a site title or a logo when you can have both! Here’s a tutorial to teach you how to add a logo before your site title.
Hi Carrie,
Can you please help me to find above header section as I’ve to place above head in my WordPress website which has genesis theme, but I couldn’t found the section where the tag to be place.
I’m looking forward to your help soon.
Thanks,
Aslam
Hi Aslam, I suggest installing the Genesis Visual Hook Guideline plugin. That will help show you where you need to hook in for your particular theme.
Thank you so much for the good help, You’ve saved me from huge stress; of which i’ve been trying all since from morning
My Blog header image now works fine and looks more awesome to my visitors
Yay!! I’m glad to hear it. 🙂
SO helpful! I was finally able to fix this and it was driving me crazy!
Hi Carrie,
I tried using your instructions, but when I change the theme settings from dynamic text to image logo it my CSS Hero inspector didn’t add the .header-image part to the script
Any tips?
Are you using the latest version of Genesis? What child theme are you using?
Okay, I just tried updating Genesis to the latest version and did it again. I still don’t get that script. I get this
/* Header Title Area */
.title-area{
}
I am using just the free child theme that comes with it when you download Genesis.
Thanks so much
🙂 Kym
Hmm… this didn’t work for me. Not sure why. I’ll have to contact the Child Theme designers.
Hi,
I was able to implement the logo to my site however I want to implement two logos of different color which changes on scroll.
I am using the theme vanish
Please help me figure this out
Thank you
Dlab
Great tutorial, I also signed up to lynda.com to watch your other genesis related tutorials. I Don’t know if anyone else has had this issue but i spent a good hour trying to figure out why the sites tagline was displaying over the top of the logo i added into a theme using this tutorial. Anyways the solution was to go to Genesis > SEO Settings > and untick “Add site description (tagline) to on home page?” > Save = problem now solved, Anyways thanks for your awesome tutorials!