Home › Forums › Support › How to put my logo on sticky menu? › Reply To: How to put my logo on sticky menu?
May 27, 2015 at 12:41 am
#110517
Tom
Lead Developer
Lead Developer
Sorry for not getting back to you sooner – this is a tough one because of where the plugins adds the sticky HTML into the document.
I think our only option is to add some JS to move the site logo into the plugins HTML structure on scroll.
You can add this using GP Hooks in the wp_footer hook:
<script>
jQuery(window).scroll(function() {
if( this.offset.top >= 320 && this.width() >= 800 ) {
jQuery(".site-logo").prependTo("#mysticky-wrap");
} else {
jQuery(".site-logo").prependTo(".inside-navigation");
}
});
</script>
Give it a shot – it might need some tweaking 🙂