[Resolved] How to add Text Logo in Navigation code in Elements?

Home Forums Support [Resolved] How to add Text Logo in Navigation code in Elements?

Home Forums Support How to add Text Logo in Navigation code in Elements?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #650870
    Alok Sharma

    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.

    #650987
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #651379
    Alok Sharma

    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 πŸ™‚

    #651812
    Tom
    Lead Developer
    Lead Developer

    Awesome, glad I could help! πŸ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.