Title: Link Logo?
Last modified: August 21, 2016

---

# Link Logo?

 *  Resolved [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/)
 * Can you link the Logo to another website and have it open in the same window?

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072428)
 * You can’t do this through the theme. You’d have to code it, I guess.
 *  Thread Starter [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072438)
 * Any idea on how to do that or does that have to be done by the Theme Creator?
 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072445)
 * You don’t need the theme creator to do it; you can do it yourself. I guess by
   editing the php for the header, but I don’t know how.
 * However, why do you want to do this? It’s now pretty much a de facto standard
   that clicking a logo takes you to the home page of a site. If you change this
   behaviour it may annoy your users or, worse, make them think that there is something
   suspicious going on.
 *  Thread Starter [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072449)
 * I agree 100% but it’s what my client wants so, LoL. I started with the Header
   PHP, but I was playing with the code and the site went blank once so I’m just
   trying to see if I can find exactly what I’m looking for before messing something
   up.
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072450)
 * Try this:
    Move class-main-header.php into your child theme so:
 * customizr
    …
 * customizr-child
    –parts (create with New Folder) class-main-header.php
 * Line 125 (before):
    `<h1><a class="site-logo" href="<?php echo esc_url( home_url('/'));?
   >" title="<?php echo esc_attr( get_bloginfo( 'name' , 'display' ) ); ?> | <?php
   bloginfo( 'description' ); ?>"><img src="<?php echo $logo_src ?>" alt="<?php 
   _e( 'Back Home' , 'customizr' ); ?>" <?php echo $logo_img_style ?>/></a>`
 * Line 125 (after)
    `<h1><a class="site-logo" href="http://mysite.com" target="
   _blank" title="<?php echo esc_attr( get_bloginfo( 'name' , 'display' ) ); ?> 
   | <?php bloginfo( 'description' ); ?>"><img src="<?php echo $logo_src ?>" alt
   ="<?php _e( 'Back Home' , 'customizr' ); ?>" <?php echo $logo_img_style ?>/></
   a>`
 * (Think is very close to what you need!)
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072451)
 * Line 125 (before):
    `<h1><a class="site-logo" href="<?php echo esc_url( home_url('/'));?
   >" title="<?php echo esc_attr( get_bloginfo( 'name' , 'display' ) ); ?> | <?php
   bloginfo( 'description' ); ?>"><img src="<?php echo $logo_src ?>" alt="<?php 
   _e( 'Back Home' , 'customizr' ); ?>" <?php echo $logo_img_style ?>/></a>`
 * Line 125 (after)
    `<h1><a class="site-logo" href="http://mysite.com" target="
   _blank" title="<?php echo esc_attr( get_bloginfo( 'name' , 'display' ) ); ?> 
   | <?php bloginfo( 'description' ); ?>"><img src="<?php echo $logo_src ?>" alt
   ="<?php _e( 'Back Home' , 'customizr' ); ?>" <?php echo $logo_img_style ?>/></
   a>`
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072452)
 * Sorry, my backticks have gone awry!
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072453)
 * Remove `target="_blank"` to avoid a new Page.
 * (Sorry all my backticks went awry)
 *  Thread Starter [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072455)
 * Can I test the code via the Child Them Editor on site or do I have to create 
   a new file within the PHP?
 *  Thread Starter [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072456)
 * And which ones are supposed to be the backticks?
 *  Thread Starter [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072457)
 * Oh, do the backticks just make the code pop-up in that little window?
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072458)
 * Sorry, the backticks is this Forum and puts shade around code so forget about
   that.
 * Sounds like you need to look at Child Themes first so read this:
    [https://managewp.com/how-to-create-a-child-theme](https://managewp.com/how-to-create-a-child-theme)
 * You’re going to take a **copy **of the customizr file, and then edit the copy
   so you don’t spoil the original file. You store it in the Child Theme directory
   customizr-child/parts.
 * Have a go, I’ll be here again tomorrow.
 *  Thread Starter [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072459)
 * YOU FOUND THE RIGHTY LINE! ALL THAT NEEDS TO CHANGE IS THE:
    href=”[http://mysite.com&#8221](http://mysite.com&#8221);
   target=”_blank” title=”<? TO href=”[http://www.mysite.com&#8221](http://www.mysite.com&#8221);
   title=”etc. etc.
 * THANKS AGAIN!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Link Logo?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/link-logo/#post-4072459)
 * Status: resolved