Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mortenrasmussen Friend
    #194081

    I am interested in some of your templates for Joomla, among them the Bookshop template. Before I purchase a membership I need to know though if it is possible (and in such case how) to have the top toolbar and the top main menu bar sticky (fixed) at the top of the page when scrolling?

    Thanks and best regards, Morten

    Css Magician Friend
    #519948

    @mortenrasmussen,

    If you want to have the top toolbar and the top main menu bar sticky (fixed) at the top of the page when scrolling, you can open ja_bookshoptemplatesja_bookshoptplsdefault.php and replace code

    <?php $this->loadBlock('header') ?>

    with


    <div class="wrap" data-spy='affix' data-offset-top='120' style="width: 100%; z-index: 2">
    <?php $this->loadBlock('header') ?>
    </div>

    120 is topbar’s height + top main menu’s height.

    mortenrasmussen Friend
    #522185

    Thanks, Css Magician, for the suggestion. It works somehow.

    But, it breaks the dropdown, which will now not function properly.

    And it jumps abrupt when scrolling. A more smooth movement like on other templates would be nice.

    You can see it here: http://www.publizd.com/boger-bogkatalog/hjaelp

    I know this is a heavy customization of a template that was not ment to do this so I guess it would maybe demand too much coding to make it act the way I want, right?

    Kind regards, Morten

    Css Magician Friend
    #522194

    Please try to remove:

    data-offset-top='120'
    from the code:


    <div class="wrap" data-spy='affix' data-offset-top='120' style="width: 100%; z-index: 2">
    <?php $this->loadBlock('header') ?>
    </div>

    You can also pm me admin and FTP credentials, I will take a closer look into your backend settings and source code as well to see how I can help.

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

This topic contains 4 replies, has 2 voices, and was last updated by  Css Magician 10 years, 9 months ago.

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