Custom Design Tools

Tips, tricks and tutorials by request

  • Home
  • Contact
  • PostsComments
You are here: Home / Archives for hybrid

Add a clickable header in Hybrid

July 25, 2010 By CDT 1 Comment

I use Justin Tadlock’s Hybrid theme framework often. It’s clean, SEO friendly and easy to customize through child themes. Child themes are custom theme files built on the hybrid framework. Hybrid is based on php hooks, so most of the modifications need to be done through hooks.

A clickable logo is something that almost every business website needs. Here is a quick and easy function to add a clickable logo to your header div.

Make sure you are working in your child theme files.

Open functions.php in your child theme folder. If you do not have a functions.php, create one.

Add the code between the backticks (`):

`
< ? php (remove spaces)
/* clickable logo header ///////////////////////////////////// */
function clickable_logo() {
?>
<a href=”http://thewebshoppe.net”><img src=”http://locationOfYourImage.com/logo.png” width=”554px” height=”83px” /></a>
< ? php (remove spaces)
}
add_action ('hybrid_header', 'clickable_logo');
?>
`

The comment line has to go after the opening php tag. If it is outside the tag, it will write above the opening html tag and throw IE7/8 into quirks mode. All sorts of ugly will happen. The first php names the function clickable_logo.

Use standard html to add the logo. Make sure you replace the above values with your own.

The final php action hook will put the logo into the header.

Gravity Forms Contact Form Plugin for WordPress

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Filed Under: WordPress Tagged With: child theme, clickable, customize, hybrid, logo, php, theme, WordPress
Dreamweaver tutorials Gravity Forms Plugin for WordPress How smart is your Theme?  How good is your support? Check out ThesisTheme for WordPress.
Raven Tools SEO Tools

Tweets from @designerrss

  • Daily Inspiration #1140: This post is part of our daily series of posts showing the most inspiring images select... http://t.co/bvHsQDf5 about 5 hours ago
  • Top Freelance Jobs from Job Board – Week 3, May: Looking for a new client? The FreelanceSwitch job board i... http://t.co/wqNq9kGd about 10 hours ago
  • Wallpaper of the Week 204 by Vlad Axinte: The wallpaper of this week is an image created by Vlad Axinte, a self-... http://t.co/1CEJzRg4 about 17 hours ago
  • Sound Design: Mechanical Roof Tweaks Concert Acoustic in Real Time: Imagine a concert hall that adapts to each p... http://t.co/OI2otzjI about 21 hours ago
  • Inspiration Ration #4: In this ration of Inspiration I want to share 3 videos i’ve found. This 3 vidz are from ... http://t.co/E6gefAOn about 1 day ago
  • follow @designerrss
SEO Copywriting Made Simple

Return to top of page

Copyright © 2012 Custom Design Tools · StudioPress · WordPress · Log in

Links

  • Easy Starter Site
  • Equipment Classifieds
  • Multimedia Training Videos
  • Plastic Surgery
  • Sales and Leadership Training
  • The Web Shoppe
Click here to visit rocketgenius.Gravity Forms Contact Form Plugin for WordPress

Popular Posts

  • Sites that Can Teach You a Skill For Free
  • Should You Design in RGB or CMYK?
  • Calculating a selector’s specificity
  • Using Graphic Bullets in InDesign
  • Set Bookmarks Panel to Open When the PDF Opens
  • Nook vs. Kindle
  • Illustrator Swirl Brushes
  • One Million Free Photoshop Brushes
  • WordPress Web Design Tips
  • How to add a transparent favicon

RSS The Web Shoppe

  • Website Design: DCR Hotmix May 11, 2012
  • Website Design: Implementation Specialists April 18, 2012
  • What should you put in your About Us page? March 28, 2012
  • The Anatomy of an Effective Homepage March 27, 2012
  • 10 Reasons to Realign Your Website March 27, 2012
  • Maximize the Popularity of Your Website with Graphic Designs March 26, 2012
  • Amazing Graphics for Facebook Timeline – Free Download March 14, 2012
  • How Much Color is Too Much Color? March 13, 2012
  • Planning Your Website March 7, 2012