troubleshooting Question

Add clickable logo to TwentyTen theme using child theme

Avatar of CSHTech
CSHTechFlag for United Kingdom of Great Britain and Northern Ireland asked on
13 Comments2 Solutions603 ViewsLast Modified:
I would like to add a clickable logo to my twentyten-based site and am using a child theme to make changes (sounds good but I'm just starting out with child themes!).

Could anyone advise me how to do this - I've seen sites that say replace: -

<<?php echo $heading_tag; ?> id="site-title">
 <a href="<?php echo home_url( '/' ); ?>" title="<?php echo  esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"  rel="home"><?php bloginfo( 'name' ); ?></a>
 </<?php echo $heading_tag; ?>>

Open in new window


<h1 id="site-title">
<a href="<?php bloginfo ('home');?>" rel="home" title="<?php bloginfo('name');?>">
<img src="<?php echo bloginfo ('template_directory');?>/images/logo.png" alt="<?php bloginfo ('name');?>" />
</h1><!--end of h1 site-title-->

Open in new window

Is this correct?

If so, I'm not sure: -

1. how do you remove the first segment using a child theme header.php file
2. how to include a link to make the logo clickable.

Help appreciated........

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros