Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • bmxnskate Friend
    #989811

    Hello,

    i try to archive that my navigation bar its 2 lines high and to be centered on the top of the menu. It is a module thats appears now under the normal menu.

    I got it to work with the guide but somehow it’s under the navigation on the top and it’s not sticky.

    Take a look: http://www.f-gallus.de

    But it should be like here: http://www.t3-framework.org/documentation/bs3-layout-system#add-position

    They gave the Menu a distance with top:

    #t3-mainnav {
        top: 80px;
    }

    i guess in the custom.css thats in the css folder of the template. But how there got to fix the possition above the menu – i can´t figure out 🙁

    I entered the social-mainnav to the xml-file:

        <position>head-search</position>
        <position>social-mainnav</position>
        <position>mainnav</position>
        <position>navhelper</position>

    And in the header.php-file:

    <jdoc:include type="modules" name="<?php $this->_p('social-mainnav') ?>" /> <header id="t3-mainnav" class="wrap navbar navbar-default navbar-fixed-top t3-mainnav">

    It’s would be great if I got some help what I doing wrong.

    Pankaj Sharma Moderator
    #990213
    This reply has been marked as private.
    bmxnskate Friend
    #990405
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #990718

    Hi
    I add the new classes and script in your header.php
    Now add below code in /css/custom.css file

    
    body{padding-top:0px!important;}
    .off-canvas-toggle {   position: absolute!important;}
    .header.affix {width: 100%;  z-index: 999;  top: 0px;}
    .header{webkit-transition: top 0.3s;  -o-transition: top 0.3s; transition: top 0.3s;  z-index: 1001;}
    

    attached is header.php


    1. header-1.zip
    bmxnskate Friend
    #990898
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #990944
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

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

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