Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Amit Anand Friend
    #191903

    Is it possible to fix the top bar to display always while scrolling the site?
    I want to see this section every time when someone is scrolling down the page.

    Thanks,

    AA


    1. top-bar
    TomC Moderator
    #510910

    You can set the main nav to a “fixed” position by using a “fixed” property within the appropriate CSS rule.

    I can take a look and try to test it out for you, but will need you to provide the url of the site you’re working on,
    as well as temporarily set “Optimize CSS” to “No” within your Template Manager–General settings.

    Ninja Lead Moderator
    #510979

    <em>@thewebmaster 396139 wrote:</em><blockquote>Is it possible to fix the top bar to display always while scrolling the site?
    I want to see this section every time when someone is scrolling down the page.

    Thanks,

    AA</blockquote>

    You can try with my below solution:

    Open templates/ja_mendozite/css/template.css file

    From

    #ja-header { background: #222; }

    #ja-mainnav { z-index: 9; background: #222; }

    #ja-slideshow {
    z-index: 8;
    position: relative;
    background: #222;
    }

    Change to

    #ja-header { background: #222; position: fixed;}

    #ja-mainnav { z-index: 9; background: #222; margin-top: 70px; position: fixed;}

    #ja-slideshow {
    z-index: 8;
    position: relative;
    background: #222;
    margin-top: 95px;
    }

    Always remember to clear cache from the Admin area after applying any changes

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

This topic contains 3 replies, has 3 voices, and was last updated by  Ninja Lead 11 years ago.

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