Archived topic
Remove entirely the link in the logo in primary navigation (Peak theme)
9 replies · Started by Boris on March 12, 2022
Hello,
I would want to remove the link in the logo in primary navigation so there is no a href.
And also the link in the website's name text next to the logo !
I tried some add_filter but it's not working. Please help !
Version 2.1.2
Hi there,
can you share a link to your site where we can see the issue ?
Hello yes, it's [link removed]
I would want to desactivate the link in the logo and in the text in all pages.
Please, make this channel private.
I would also do it for my site [link removed].
What should I do ?
Thanks David
Hi Boris,
This snippet should work:
https://docs.generatepress.com/article/generate_site_title_output/#example
Adding PHP: https://docs.generatepress.com/article/adding-php/
I've removed the links you've provided above. Please use the private info field in the future:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Hello Leo, I insert your filter by installing Code snippets but it's not working. I don't understand what's the problem. The logo and the text of my website's name next to the logo still clikable to my home page url
Thanks in advance.
Hello Boris,
To remove the link from site logo, add this snippet as well:
https://docs.generatepress.com/article/generate_logo_output/#remove-the-logo-link
And make sure all cache is cleared on your site.
Hello Ying,
It's working ! But only on the home page, the picture is bigger size.
But on other pages it's working.
How can I reduce the size please ?
Thanks in advance
That's weird, the PHP code works on every page, and it should not change the logo size.
Do you have any other custom functions? If not, can you clear cache and disable your cache plugin?
Let me know :)
Thank you Ying,
I empty the cache of Total Cache and it's working !
Good journey
Glad to hear that :)