Archived topic
How to add Text Logo in Navigation code in Elements?
3 replies · Started by Alok Sharma on August 16, 2018
Hi Tom / Leo / David,
Can you please guide me how to add this (https://generatepress.com/forums/topic/text-logo-in-navigation-bar/#post-632510) code in Elements?
That way, I can go ahead and deactivate the Code Snippets plugin since I had specifically installed it for this purpose only.
Also, I am curious to know if the Text Logo thing has been already taken care off so we no longer have to play around with this hack.
Thanks in advance.
It hasn't, but it's still something I want to add.
Now, you would create a new Hook Element, and add this as the content:
<div class="menu-site-title">
<a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a>
</div>
Then set the hook to inside_navigation, and set the Display Rules to whatever you need :)
Thank you, Tom.
It worked like a charm except that the logo did not display at first, it took me a second to figure out that I need to tick the Execute PHP checkbox as well and Voila!
Thank you once again :-)
Awesome, glad I could help! :)