Site logo

Archived topic

Logo in Header Element - Link Area is not big enough

5 replies · Started by Mary Pearson on June 26, 2019

Viewing posts 1–6 of 6

I created a slider for my logo. I took some info I found on the forums and added the following to my functions.php file, but I honestly don't know what I'm doing so it's probably wrong. I simply want the logo to take people to home page.

// Make Logo Element a Link 
 add_filter( 'generate_logo_href','generate_add_custom_logo_href' );
function generate_add_custom_logo_href()
{
     if ( is_category() ) {
        return ' http://167.114.208.131/~melissa/';
    }

   // Otherwise, return our default logo
    return $logo;
}
 

It works as a link, but only if you hover over the very bottom of the image. I want it so that when you hover over any part of the logo it shows as a link.

Would appreciate your help. Thanks!

How do I use the slider then for the logo?

Thanks Leo. before and after logo didn't work but header did. All is good. Many thanks!!!!

No problem :)

This archived topic is closed to new replies.