Archived topic
Custom logo doesn't work when scrolling with sticky navigation set.
1 reply · Started by Theresa on December 16, 2022
Displaying a different logo on a few pages and it works fine until I scroll (sticky navigation is set). When I scroll, the sticky navigation logo (set in customizer) appears on the pages even though I have a different logo set for the page.The different logo is set up as a header element. I looked on the forum but none of the CSS worked.
Any help would be appreciated.
Hi there,
Are you using a filter to switch out the logo on the Dark Fiber page?
If so you will need another one for the sticky navigation logo:
add_filter( 'option_generate_menu_plus_settings', function( $settings ) {
if ( is_page( 44301 ) ) {
$settings['sticky_navigation_logo'] = 'LOGO IMAGE URL HERE';
}
return $settings;
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know if this helps :)