Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • James G Friend
    #197572

    I have added the javascript code below into head.php:

    <script src=”http://stickyjs.com/jquery.sticky.js”></script>
    <script>
    jQuery(document).ready(function(){
    jQuery(“#t3-mainnav”).sticky({topSpacing:0});
    });
    </script>

    It works great the top header stays sticky. However can someone tell me how i can change it so it only shows when i scroll up?

    Thanks

    TomC Moderator
    #534373

    It would be helpful if you could provide the url of the site you’re working on, so we can view the issue you’re describing.

    James G Friend
    #534385

    That seems a bit of a snotty comment?

    Why would you need the URL? I have explained the deal.

    Biz does not have a sticky header so i added the javascript above which then gave it a sticky header.

    I simply want to make it that its only a sticky header when you scroll up rather than down.

    TomC Moderator
    #534386

    <em>@jameswhufc 426267 wrote:</em><blockquote>That seems a bit of a snotty comment?
    Why would you need the URL? I have explained the deal.</blockquote>

    Because often the issue can be addressed via inspecting the relative CSS for the at-issue element – including coding certain elements “sticky” ….which we can only do if we are able to view the site online.

    I fail to see what is so “snotty” about this – we do it every single day as part of our effort to assist Members with various issues. It’s a “help us help you” cooperative effort . . . make sense?

    James G Friend
    #534845

    Appologies i was ill and took the comment the wrong way.

    I only have a copy of the site locally currently.

    I thought it would be a simple case of missing a bit of CSS i need to add or simply adding to the javascript code above but i guess not.

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  James G 10 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum