test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • meguiars Friend
    #937913

    Is it possible to fixed main manu on scroll?

    Pankaj Sharma Moderator
    #937980

    Hi, I am afraid the header and main nav in this template are defined separately and the fixed scroll does not fully support due to the complex design part .You can add below code to fix the main nav in custom.css file but it

    .t3-mainnav {width:100%;top:30px;z-index:99;}

    and below script add the end of tpls/blocks/header.php file

    < script>
    (function ($) {
        $(document).ready(function(){
            $('#t3-mainnav').affix({
            offset: {
                  top: $('#t3-mainnav').offset().top
                }
        });
        });
    })(jQuery);
    < /script>
    leonloi Friend
    #944407

    Hi,

    What I meant was i want the t3-header and t3-mainnav to be sticky on top , in order to do that I will just need to modify the script to add in the function for the t3-header right ?

    Thanks.

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

This topic contains 2 replies, has 3 voices, and was last updated by  leonloi 8 years, 5 months ago.

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