Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • joomlanews Friend
    #198187

    I want to have my menubar (navbar) always on the top of my screen.
    that needs a scrollable bar, that flow down with the screen. It’s the same effect as in JA_Magz?

    Is that difficult to realize? I saw in the source, it’s something like <div class=”navbar fixed-top…”
    what I need to copy from ja_magz? only css or dynamic php code (header block) or both?

    I’ve already played around with, but without success 🙁

    thanks in advance you for your help.

    Pankaj Sharma Moderator
    #536819

    Hi
    you can follow this link to make the menu sticky .
    may be it will solve your problem

    joomlanews Friend
    #536842

    Tanks pankajsharma

    The described solution still works fine for the mobile view. but for the desktop view the menubar scrolls not with the content.
    I don’t know wich override should I use? custom.css or in the navbar.less?

    cheers Roger

    Pankaj Sharma Moderator
    #536845

    <em>@joomlanews 429458 wrote:</em><blockquote>Tanks pankajsharma

    The described solution still works fine for the mobile view. but for the desktop view the menubar scrolls not with the content.
    I don’t know wich override should I use? custom.css or in the navbar.less?

    cheers Roger</blockquote>

    Did you added the css classes in navbar.less????
    and compiled the less to css??

    joomlanews Friend
    #536846

    yes exactly! after compiling the menu-navbar was black :). I’ve used the navbar.less from ja_magz. and the position was fix and not scrollable.. I think it need more things to costumize…

    joomlanews Friend
    #536911

    for other people here, who are interested in that, here my solution:

    I added a small css in my custom.css like follows:
    /* — menu fix effect — */
    .t3-mainnav {
    position:fixed;
    width:100%;
    z-index:9999;
    }
    .t3-mainbody {
    padding-top: 30px;
    }
    @ media (max-width: 767px) {
    .t3-mainbody {
    padding-top: 0px !important;
    }
    now It works for me….
    URL to my modification: http://www.joomlainfo.ch

    Pankaj Sharma Moderator
    #536913

    Glad you solved it 🙂
    Thanks for sharing to others .
    All the best your development site

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

This topic contains 7 replies, has 2 voices, and was last updated by  Pankaj Sharma 10 years, 6 months ago.

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