Archived topic
Different sticky navigation logo
10 replies · Started by Royal Rangers on February 2, 2022
For some pages I have a different sticky navigation logo. In functions.php I have this code:
add_filter( 'option_generate_menu_plus_settings','rrlarp_sticky' );
function rrlarp_sticky( $options ) {
if ( is_page( array(10957,10690,10805,10810,10765,10653,10460) ) ) {
$options['sticky_menu_logo'] = 'https://www.abc.cz/logo-larp-hlavicka-male-tmave.png';
$options['sticky_menu'] = 'true';
}return $options;
}
Why it shows me twice?
https://ctrlv.cz/5xFj
Hi there,
Can you disable that snippet first?
Let me know :)
Hi Leo, Snippet is disable now.
So just to make sure, both logos are removed without that snippet?
Yes. There is nothing there now.
Hi Jan,
There's actually an img element for the sticky navigation but it seems broken -
https://share.getcloudapp.com/xQuzR6jK
Do you have any image optimization plugin active? If yes, can you try deactivating it as it may be messing w/ the logos.
Hi, I use ShortPixel. It is disabled for now.
And works. How I can fix it?
Hi, I use ShortPixel. It is disabled for now.
ShortPixel is a third-party beyond our scope, unfortunately.
It may be worth asking ShortPixel's support if they have some sort of update or workaround for this particular issue. :)
You may also want to consider using another plugin.
Thanks. I understand. I try Shortpixel activated and works too for now.
No problem. Let us know if you have further questions. :D
Thanks