Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1059968
    janushan24
    Participant

    Hi,

    I’m trying to set the header back to transparent when scroll back to the top. But it looks like there is some issue with that. Can you help please?
    http://www.jananishan.com

    #1060017
    Christopher
    Moderator

    Hi there,

    Please share the code you currently use and provide us with login credentials.

    Thanks.

    #1060504
    janushan24
    Participant
    This reply has been marked as private.
    #1060753
    Rad
    Moderator

    Hi there,

    Your JS code has wrong minus sign,

    Please replace this line,

    var scrollToPosition = $('#' + hash ).offset().top - $adminbarHeight – $navbarFixedTopHeight + 1;

    with this one

    var scrollToPosition = $('#' + hash ).offset().top - $adminbarHeight - $navbarFixedTopHeight + 1;

    Cheers!

    #1060789
    janushan24
    Participant

    Thank you. Works perfectly!!

    #1060827
    Rue Nel
    Moderator

    You’re welcome!
    Thanks for letting us know that it has worked for you.

  • <script> jQuery(function($){ $("#no-reply-1059968 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>