Archived topic
Window logo URL
3 replies · Started by Miguel Angel on March 22, 2017
Hello Tom, I want the URL of the logo to open in another window.
This code gives me error:
add_filter( 'generate_logo_href','generate_custom_logo_href' );
function generate_custom_logo_href()
{
return 'https://www.google.es/' target="_blank" ;
}
Can you help me please.
A hug
Hi Miguel,
You would have to filter the entire logo HTML. I added an example for you on this page: https://docs.generatepress.com/article/generate_logo_output/
Hi Tom, perfect thanks.
A hug
Glad I could help :)