Custom Design Tools

Tips, tricks and tutorials by request

  • Home
  • Contact
  • PostsComments
You are here: Home / Archives for child theme

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
Raven Tools SEO Tools

Tweets from @designerrss

  • Top Freelance Jobs from Job Board – Week 1, February: Looking for a new client? The FreelanceSwitch job bo... http://t.co/nqyYOaGz about 17 mins ago
  • Wallpaper of the Week 189 by Jeff Huang: The wallpaper of this week is an image created by Jeff Huang. Jeff is a... http://t.co/Z5Gpwwve about 9 hours ago
  • Video – Paul Boag: Get Clients to say ‘Yes!’: View engaging conference lectures, interesting how to discus... http://t.co/TgPO2Atf about 1 day ago
  • Best of the Week #208: It's time for our best news of this week. We have a lot of graphic and web design, a bit ... http://t.co/BszgYIY7 about 1 day ago
  • Daily Inspiration #1048: This post is part of our daily series of posts showing the most inspiring images select... http://t.co/IMxHHkGj about 2 days 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
  • Nook vs. Kindle
  • Illustrator Swirl Brushes
  • Set Bookmarks Panel to Open When the PDF Opens
  • One Million Free Photoshop Brushes
  • WordPress Web Design Tips
  • How to add a transparent favicon
  • Using Graphic Bullets in InDesign

RSS The Web Shoppe

  • Al Winmill of Titan Outlet Store on YouTube Success January 27, 2012
  • Rikka Brandon of Building Gurus on LinkedIn Success January 26, 2012
  • Teresa Lewis – Email Newsletter January 23, 2012
  • Ben Larson at Dive95 on Facebook Success January 19, 2012
  • Is social media really going to help your business? January 16, 2012
  • Optimize Your Facebook Page To Get More Likes January 11, 2012
  • Happy Holidays from The Web Shoppe December 23, 2011
  • Social Media is Hot, But What About Email Marketing? December 23, 2011
  • Does Your Website Look Trustworthy? December 21, 2011