-
AuthorPosts
-
July 8, 2016 at 11:38 am #658331
Hi there,
Can I make a logo also sticky when the menu is above the logo? And can I make the menu background color change when srolling?
Please take a look at:Thanks in advance!
Best regards, Annelies
July 11, 2016 at 1:47 pm #659249Hi Annelies,
Sorry for the late reply, I’m not 100% sure I understand what you mean by that. Could you try to explain a bit further what you are looking to achieve and/or post screenshots highlighting your intentions please?
Thanks,
RikardJuly 11, 2016 at 2:30 pm #659287Hi Rikard,
Sorry for the minimal explanation ;-)
In private content I have the screenshots for you.Best regards, Annelies
-
This reply was modified 9 years, 3 months ago by
Analyze-Design.
July 13, 2016 at 5:32 am #660197Hi,
Thank you for the detailed explanation. Please try this in the functions.php file:
// custom script function add_custom_script(){ ?> <script> (function($){ function g() { var scrolled = $('.header-scrolled').length, st = $(window).scrollTop(); if( st >= 99 ) { $('.av-section-bottom-logo').insertAfter('#header_main'); $('.header_bg').css('background', '#ffffff'); } else { $('.av-section-bottom-logo').prependTo('#main'); $('.header_bg').css('background', 'transparent'); } } function gh() { var st = $(window).scrollTop(); if( st >= 99 ) { $('.av-section-bottom-logo').insertAfter('#header_main'); $('.header_bg').css('background', 'transparent'); } } gh(); $(window).scroll(function() { g(); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_script');Remove browser cache or hard refresh before checking the page.
Best regards,
IsmaelJuly 18, 2016 at 1:49 pm #661939Hi Ismael,
I figured it out, on a different way. Thanks for the hints ;-)
Best regards, AnneliesJuly 18, 2016 at 5:12 pm #662139Hi,
glad you figured it out. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
Andy -
This reply was modified 9 years, 3 months ago by
-
AuthorPosts
- The topic ‘Logo below menu styling question’ is closed to new replies.
