We help IT Professionals succeed at work.
Get Started

Add clickable logo to TwentyTen theme using child theme

CSHTech asked
Last Modified: 2012-05-11
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........
Watch Question
This problem has been solved!
Unlock 2 Answers and 13 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE