Archived topic
Logo in secondary navigation
5 replies · Started by Alex on February 22, 2023
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
Hi there,
where are you seeing the error ?
Hi, I've just activated it on one page.
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/
Thanks Ying, I've gotta stay focused.
You are welcome :)