Navbar in Header

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hankster
    Senior Member
    • Feb 2002
    • 890

    Navbar in Header

    How would I move my navbar into the header? If I just put $navbar in the header it doesn't show up? TIA!
  • vbcore
    Senior Member
    • Sep 2004
    • 370
    • 3.0.7

    #2
    copy the entire navbar template to your header template.

    Comment

    • hankster
      Senior Member
      • Feb 2002
      • 890

      #3
      I just want to put the button bar part of it in the header. But when I paste in the part between

      <!-- nav buttons bar -->

      and

      <!-- /nav buttons bar -->

      I get an error in the AdminCP when saving it.

      Comment

      • phenomenon
        Member
        • Sep 2003
        • 61
        • 2.3.2

        #4
        Originally posted by vbcore
        copy the entire navbar template to your header template.
        Seriously? I don't get it -- there are other variables being included into the header, why isn't $navbar? I'd love to keep these templates separate

        Comment

        • jamesyfx
          Senior Member
          • Feb 2005
          • 679
          • 3.6.x

          #5
          Originally posted by hankster
          I just want to put the button bar part of it in the header. But when I paste in the part between

          <!-- nav buttons bar -->

          and

          <!-- /nav buttons bar -->

          I get an error in the AdminCP when saving it.
          You'll need to paste all the if statements below it too, just copy from

          <!-- nav buttons bar -->

          riight to the bottom of the template.

          Comment

          • phenomenon
            Member
            • Sep 2003
            • 61
            • 2.3.2

            #6
            Thanks to Jake Bunce in this thread, I now understand why $navbar doesn't work in the header, AND was able to get the navbar to sit next to the header without copying and pasting the code from the navbar template into the header template.

            Basically, I followed Jake's instructions in copying the code from the bottom of the header template, including the last <td> tag with the comments in it, and the closing </td></tr></table> tags. I then went into the navbar template, and placed that opening <td> tag at the top of the navbar template, and all the closing tags at the bottom. This forced the navbar into the table next to the logo.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            😀
            😂
            🥰
            😘
            🤢
            😎
            😞
            😡
            👍
            👎