How to Add a Home Link to Logo

  1. Home
  2. Docs
  3. Event Manager
  4. Frequently Asked Question...
  5. How to Add a Home Link to Logo

How to Add a Home Link to Logo

If you want to add a home link to your logo, follow the next steps:

1. Backup your installation files.

2. In the EMTheme folder, add this snippet of code at the end of “functions.php”

add_filter ( ‘genesis_seo_title’, ‘child_header_title’, 10, 3 );
function child_header_title( $title, $inside, $wrap ) {
$inside = sprintf( ‘<a href=”%s” title=”%s”> <img src=”%s” alt=”%s” /></a>’,
home_url(), esc_attr( get_bloginfo( ‘name’ ) ), get_header_image(), esc_attr( get_bloginfo( ‘name’ ) ) );
return sprintf( ‘<%1$s id=”title”>%2$s’, $wrap, $inside );

3. In the same file, “function.php” find (at around line 197)
echo ‘<style type=”text/css”>.header-image #title, .header-image #title a {text-indent: -9999em;}</style>’;

4. Replace with
//echo ‘<style type=”text/css”>.header-image #title, .header-image #title a {text-indent: -9999em;}</style>’;

5. Update file


Was this article helpful to you? Yes No