Site logo

Archived topic

Remove Logo Link to Homepage

13 replies · Started by Martin on August 10, 2015

Viewing posts 1–14 of 14

Hi

There doesn't seem to be an obvious setting for this and wondered how to remove the logo link to the homepage of the site?

Thanks

Martin

Do you want to remove the link altogether or just change it to a different page?

I originally thought remove but change would be better?

Thanks

Martin

That's great Tom. Thank you.

Sorry Tom, I thought I had it.

When it says // Enter the URL you want your logo to link to below
return 'http://generatepress.com'; ...

... where exactly do I put it?

Thanks

Martin

Think I might have cracked it. Does the url need to be enclosed in "url"?

Thanks

Martin

You would replace http://generatepress.com with your URL.

So it would be:

add_filter( 'generate_logo_href','generate_custom_logo_href' );
function generate_custom_logo_href()
{
	// Enter the URL you want your logo to link to below
	return 'http://YOURURLHERE.com';
}

That was obvious wasn't it? :) Thanks again for your help.

No problem! :)

Hi Tom,

Question: How can I alter the site name link in header to match that of the altered logo?

Thanks for the simple PHP plugin and the directions for adding the PHP to change the logo link in the header. It is simple to do. However, while the header logo links to another URL, the site name, an active link, needs to be changed to match that of the logo. Do you have another snippet of PHP that will allow me to change the site name URL as well?

PS: I use the paid version of GeneratePress (along with Visual Composer and a suite of add-ons) and LOVE it! Thanks for your hard work and commitment to GP.

Cheers,
Will

Absolutely! You would do this:

add_filter( 'generate_site_title_href','generate_custom_site_title_href' );
function generate_custom_site_title_href()
{
	// Enter the URL you want your logo to link to below
	return 'http://YOURURLHERE.com';
}

Glad you're enjoying GP! :)

Tom, thanks very much for this! Best wishes to you and your family…

You too! :)

This archived topic is closed to new replies.