Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Make logo appear only after scrolling some few px

Home / Forums / Virtue Theme / Make logo appear only after scrolling some few px

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
January 6, 2015 at 11:07 pm

Hi! how to i make my logo appear only after scrolling about 800px from the top? I’ve learned so far i need this code:

jQuery( function( $ ) {

$(document).ready(function(){
$(window).bind(‘scroll’, function(){
$(“.logo”).toggle($(this).scrollTop() > 800);
});
});

});

But, where do i put that code? Thanks!

  • The forum ‘Virtue Theme’ is closed to new topics and replies.