Site logo

[Resolved] Logo in secondary navigation

Home Forums Support [Resolved] Logo in secondary navigation

Home Forums Support Logo in secondary navigation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2542335
    Alex

    Hi team,

    I’m trying to have the logo in the secondary nav (sticky) but I get eval()’d code error.

    The hook I’m using is as suggested on the forum:

    add_action( 'generate_inside_secondary_navigation','add_secondary_navigation_logo' );  
    function add_secondary_navigation_logo() { ?> 
        <div class="secondary-navigation-logo">
            <img src="THE URL TO YOUR IMAGE" alt="" />
        </div>
    <?php }

    Any suggestions are appreciated.

    Thanks

    #2542899
    David
    Staff
    Customer Support

    Hi there,

    where are you seeing the error ?

    #2542968
    Alex

    Hi, I’ve just activated it on one page.

    #2543273
    Ying
    Staff
    Customer Support

    Did you add the code using a hook element?

    If so, please remove it from the hook element, you can use one of the methods introduced in the below article to add this code:
    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #2543423
    Alex

    Thanks Ying, I’ve gotta stay focused.

    #2544342
    Ying
    Staff
    Customer Support

    You are welcome 🙂

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