Uploaded by byobwebsite on Jul 29, 2011
A member asked for help in creating a header with a logo image on the left and the navigation menu on the right. This requires us to have 3 images, a main background image, a logo image and "current" menu condition image. We demonstrate how to add a background image for the header and then create a function that adds the logo image and the navigation menu to the header. Then we style all of this with CSS.
One interesting thing we address is a problem with IE8. Thesis has a special CSS rule for IE that makes it so our menu doesn't display properly. We troubleshoot this and then fix it.
Visit our website at http://www.byobwebsite.com/ for more video tutorials on building and customizing your own Thesis themed WordPress website.
Transcript
Okay, yeah Rick, you can hear me okay now?
Yeah, it's soft but I can hear you.
Alright, yeah. My question is quite simple. I've been looking at a site which has a very thin, slim navigation menu right on the top and it looks like there's no header but just this thin navigation menu. I want to recreate that. I just want to know just how that's done and what's the best way to structure that.
Perfect and this is the site, right?
Yeah, that's the site yeah.
This is the site and so what this is is a background image that is repeated across the top and then it is a logo and then it has this text and then it's got this little tiny background image for the current tab. And so I prepared this presentation here this afternoon and we're going to essentially do that here on our Community News Case Study site. You can see I've already played around with it a little bit just to get some of the preliminary stuff out of the way. But what I did was I created 3 images, I created a background image, I created a little logo image, and I created this little triangle image and we're going to apply those in this Community News Case Study site. And so the first thing to do though is to go on to our Design Options and set a few things. Actually, you'll see that under the Nav menu, I chose a different font. I made the font larger, I changed link color and that kind of stuff, and then I made the background color all the same this dark blue which is going to be the color of the band across the top. And then I also made the border go away by giving it a 0 there.
And the other thing we need to do is go to our header, pardon me, not there. Over here go to our header, hide both the logo and the tag line and I think that's just about it. So we'll go ahead and save this and you can see a bit how it has changed then. So now what we need to do is we need to create a function, a function that adds that logo. Well, first the function needs to remove this Nav menu from above the header, add that logo to the header, add this menu to the header and yeah, that's what we need to do with that. And so in custom functions php, this is the custom functions php that we're using to do this Community News site. So here is the function that I wrote and I'm going to uncomment these lines. So the function is called...well, the first thing we do is we remove the Thesis Nav menu so it's remove action Thesis hook before header Thesis Nav menu and then we have our function byob custom header. And the only thing we're doing in this function is we are creating a link with an image. And that link is back to our home page so http:www.community.byobtutorial.com that takes us back to our homepage and then we just have the image address for that image. And I stored that under thesis_18 Custom Images folder and it's called logo.png and then I added a couple other things like alt text and title to it as well and then we close out that link.
And so all we really have no HTML structure really except for just an image link that sits in here and then we are going to add this function. So we're going to add action Thesis hook header, that's what we're going to put inside the header and the function name is byob custom header. So to this hook, we are hooking this function here and then after that, to the same hook, we are going to hook the Thesis Nav menu. So it's a pretty simple structure to kind of reorganize or rearrange, to insert a logo and then to put the Nav menu beside it.
So you haven't gotten rid of the header yet, you haven't got rid of the header. You just put this Nav menu inside the header.
Yes. What I've done is I've put the image inside the header first and then after I put the image in the header, then I put the Nav menu in the header.
For the lesson and full video transcript visit: http://www.byobwebsite.com/answers/how-to-create-a-header-with-a-logo-image-b...
Category:
Tags:
License:
Standard YouTube License
-
6 likes, 0 dislikes
-
As Seen On:
WordPress Tutorial Vi...
3:57
Adding your own Logo/Header Image to Wordpressby WpressTuts7,537 views
3:13
Wordpress Static Pages - Wordpress Tutorialsby sstam1494 views
19:01
How To Make Your Own Blog Headerby whoisrickhamilton4,806 views
9:26
How to add a page and How to customize menu bar in wordpressby nathancornella2,297 views
3:50
How to Insert Graphic Logo on Address Barby HonestWealthBuilder2,975 views
1:22:02
How to build your very own wordpress website from scratch! Part 1by FreeLeadsExpert25,713 views
2:03
Add a box shadow around website page with thesis theme custom cssby thdesignblog1,278 views
8:14
Creating Breadcrumb Navigation for your Thesis based WordPress Websiteby byobwebsite568 views
3:34
CSS Background Image Replacement Tutorialby LearnWebCode2,856 views
9:47
Create Header for Blogger & Word Press Using Photoshop Part 1.by jondummie3,918 views
9:27
Using Wordpress to Build Websitesby JohnsTechBlog1,325 views
13:00
Create a web banner using photo shop cs5 for a web site or online use.by freewebsitetricks4,265 views
4:37
Add a Picture Icon to the Internet Address Toolbarby missionphoto1,533 views
7:30
How to make a Navigation Bar HTMLby TheTigerTutorials11,376 views
7:11
Customizing Your WordPress Header | WordPress Design Made Simple Web Designby webconsultingphilly406 views
6:19
How to Customize WordPress Theme Content section with Artisteer 3by brettbum2,867 views
5:48
WordPress Tutorial - Customize Text Editor Pageby BlogAid678 views
7:26
photoshop secrets | how to create cool website backgroundsby pixelatorNYC6,039 views
9:50
How to make a Website with HTML and PHP(Part 1) Introby MainTutorials38,434 views
6:40
Build Your Own CSS Website Connect Divs To CSS Lesson 2by 1stoptutorials18,626 views
- Loading more suggestions...
Link to this comment:
All Comments (1)