Home › Forums › Support › Logo in secondary navigation This topic has 5 replies, 3 voices, and was last updated 3 years, 2 months ago by Ying. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts February 22, 2023 at 3:02 am #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 February 22, 2023 at 9:14 am #2542899 DavidStaff Customer Support Hi there, where are you seeing the error ? February 22, 2023 at 10:04 am #2542968 Alex Hi, I’ve just activated it on one page. February 22, 2023 at 2:39 pm #2543273 YingStaff 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/ February 22, 2023 at 8:22 pm #2543423 Alex Thanks Ying, I’ve gotta stay focused. February 23, 2023 at 9:57 am #2544342 YingStaff Customer Support You are welcome 🙂 Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In