Title: Header logo with tooltip?
Last modified: August 21, 2016

---

# Header logo with tooltip?

 *  Resolved [karsten007](https://wordpress.org/support/users/karsten007/)
 * (@karsten007)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/header-logo-with-tooltip/)
 * Hello,
 * I can not figure out how to put a tooltip on my header logo.
 * Here is my website:
 * [http://www.kagels-trading.de](http://www.kagels-trading.de)
 * So if you hover the logo “Kagels Trading” you will see the finger, but no text.
   I would like to add some short title text.
 * I know it must be title=”mytext”. But where can I put this title? In the header.
   php for sure…but where?
 * Thank you for support and help.
 * Regards,
    Karsten

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

 *  [Mike Orange](https://wordpress.org/support/users/mike-orange/)
 * (@mike-orange)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/header-logo-with-tooltip/#post-5148890)
 * Hello Karsten,
    no, it’s functions.php In original functions.php locate alx_site_title()–
   line 320 or close. Since you uploaded a .png image, you should override it in
   child theme functions.php with something like this:
 *     ```
       function alx_site_title() {
       		// Text or image?
       		if ( ot_get_option('custom-logo') ) {
       			$logo = '<img src="'.ot_get_option('custom-logo').'" alt="'.get_bloginfo('name').'" title="Hello World" >';
       		} else {
       			$logo = get_bloginfo('name');
       		}
   
       		$link = '<a href="'.home_url('/').'" rel="home">'.$logo.'</a>';
   
       		if ( is_front_page() || is_home() ) {
       			$sitename = '<h1 class="site-title">'.$link.'</h1>'."\n";
       		} else {
       			$sitename = '<p class="site-title">'.$link.'</p>'."\n";
       		}
   
       		return $sitename;
       }
       ```
   
 * It’s “Hello World” + this is “quick hack”, probably can be shortened.
    Regards,
   Mike
 *  Thread Starter [karsten007](https://wordpress.org/support/users/karsten007/)
 * (@karsten007)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/header-logo-with-tooltip/#post-5148892)
 * Hi Mike,
 * thank you very much for this info. It works. Now I have the tooltip on the header
   logo.
 * I put the complete function code in my childtheme.
 * Regards,
    Karsten

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

The topic ‘Header logo with tooltip?’ is closed to new replies.

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

## Tags

 * [header logo](https://wordpress.org/support/topic-tag/header-logo/)

 * 2 replies
 * 2 participants
 * Last reply from: [karsten007](https://wordpress.org/support/users/karsten007/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/header-logo-with-tooltip/#post-5148892)
 * Status: resolved