Menu

How to Add a Logo to the Header

One question I get asked often is how to add a logo to the Genesis header. To add an image logo to your header you ideally would want access to sever files through FTP. However, it is entirely possibly to do with without FTP access by using the media library and the admin file editor in WordPress, though I do not recommend tis way.

Step 1: Create your logo

I would guess most of you have already went ahead and completed this step even before reading this tutorial, but you never know. Anyways, make sure to have your logo handy and sized appropriately. In the default child theme the title area is 350px x 90px, but feel free to create the logo as big or little as you want it.

Step 2: Upload your logo

Have your favorite FTP tool? Open it up and navigate to your images folder in your child theme. Upload your logo to this directory and make sure to remember the name of the file.

Filezilla or Cyberduck are good FTP browsing apps.

Step 3: Update Settings

To ready the area for the logo make sure to update Genesis header settings to ‘Image logo’. This adds a class to the body of ‘.header-image’ to allow us to style the title area specifically for use with an image logo. If you don’t see this setting it is possible you are using a header background, and this option is unavailable (In the future I may update or write a new post to how to add a logo with a header background).

Step 4: Modify style.css

This step may vary depending on your child theme, but the idea is the same.
In your child theme’s style.css you would want to find the lines below or similar.


/* Image Header - Partial Width
------------------------------------------------------------ */

.header-image #title-area,
.header-image #title,
.header-image #title a {
	display: block;
	float: left;
	height: 90px;
	overflow: hidden;
	padding: 0;
	text-indent: -9999px;
	width: 350px;
}

.header-image #description {
	display: block;
	overflow: hidden;
}

If you can’t find anything similar in your child theme feel free to add it yourself. The CSS above is actually taking the text from the site title area and pushing it off-screen. There are also many ways of accomplishing this, but for this tutorials lets just use what we have. So, long as this CSS now is in your theme, where you saw your header text before it will be blank. To get your logo to appear we need to set the background of this area to the logo you uploaded in step 2. To do this add the lines below making sure to ‘update your-logo-filename.png’ yo your filename.

.header-image #title a {
	background: url( 'images/your-logo-filename.png' ) no-repeat;
}

If your logo is bigger than the default size make sure to tweak the height and width of your title area.
Note: If adjusting width wider than the 350px default you may also need to update ‘#header .widget-area’.

Step 5: Cheer in Success (or slam things in frustration)

Taking a look at your site now you should see your logo in all magnificent glory. If not don’t panic or be frustrated. Make sure to go over the past steps, and that the path to your logo is correct. If it needs some minor tweaking to fit in the area inspect it with firebug or your browser’s built-in inspector and play with it till perfect.

Short link: http://goo.gl/MLqnj

Say Hello to the Genesis Visual Hook Guide v2.5

The Genesis Visual Hook Guide, developed for myself, released to the public, originally was just a sample functions.php file I used to test snippets for Genesis, however it quickly grew to more than that.

At first, the Hook Guide was just a series of images that I snapped of an early version of what it is now. These images quickly became a useful tool to many of the developers just learning and figuring out Genesis and all of its hooks.

Following the images I shared, I created a single template on this site, that outputted the hooks, and added the ability to see the main wrapping divs visually, as well as filterable text. Being a single template file however, it was limited as you could only view the hooks in the hacked up page template I created.

During a clean up of code I ported the main features of the template to a plugin that can be installed on any Genesis Theme site. This allows the hooks and filters to be viewed in the your theme may it be the sample child theme, Lifestyle, Prose, or a custom theme build.

So today, I want to welcome version 2.5 of the Visual Hook Guide as a part of the revamp of genesistutorials.com that will be happening over the next few weeks (more info on this to come soon). I have built the visual hook guide to be a full functional site, with many new features and updates to it coming down the road. The guide has also been update to the latest version of the Genesis sample child theme, so, yes, it is responsive. Go check it out, click around. Some features of it may be buggy for the next few days, it was originally built as only a single template, but please let me know of any issues you come across and I’ll try my best to quickly fix them.

Short link: http://goo.gl/EvFsE