Site logo

Archived topic

linktarget of site-title

1 reply · Started by Jens on October 10, 2016

Viewing posts 1–2 of 2

Hi there,

one has the option to either integrate his own logo into the header or leave the site-title and show it. If this is done, then the site-title is a clickable link that targets the home directory ( http://example.com/).
I would like to change that so that the linktarget is something like http://example.com/newtarget).
How do I do this? I have no idea yet.

Thanks in advance

Hi there,

You can use a function like 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';
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

This archived topic is closed to new replies.