Content types

Select your language

  • Deutsch
  • English
Content types
Stefan J. Truckers Homepage
  • Projects Zeigbares
  • 3D Printing 3D Printing FDM / FFF
      • Back
      • Guides & Help
      • Facts & Tips
      • FDM Design Guide
      • FDM 3D Printing Help
      • STL. Collection
      • Back
      • Purchase Advice
      • Filament Finder
          • Back
          • - All -
          • ABS
          • ASA
          • CPE
          • HIPS
          • PA
          • PC
          • PET
          • PETg
          • PCTG
          • PEEK
          • PLA
          • PP
          • PVB
          • Composite
          • Blends
      • 3D Printer 3D Printer
      • Components
          • Back
          • Extruder Extruder
          • Mainboards
      • FDM Firmware
          • Back
          • Klipper Klipper
          • RepRap Firmware
          • Marlin Firmware Marlin Firmware
          • Repetier Firmware Repetier Firmware
          • G-Codes & Commands
  • Tech Hard & Software
      • Back
      • Photo & Video
          • Back
          • Tips
          • Equipment
          • Gallery
      • Personal Computer
          • Back
          • Security
          • Programs
          • Operating System Tips
          • Artificial Intelligence
          • Web
              • Back
              • Joomla CMS
              • Scripts & Codes
              • Optimization
              • Soziale Medien
  • Craft Corner
      • Back
      • Production
      • RC-Sport Funkgesteuert

      • Back
      • Pure Fun
      • Laser Gravieren / Schneiden
      • CNC Fräsen
  • Vita everyday life
      • Back
      • Living Space
      • Home & Living
      • Real estate search
      • Balcony & Garden
      • Back
      • Wellbeeing


  • About About Stefan
      • Back
      • Career
      • Portfolio (2)
      • Gönne mir was (2)
  • Unterstütze Projekt & Mich
  • Tech
  • Personal Computer
  • Web
  • Joomla CMS
  • Move the Off Canvas Toggle Button in Gantry 5 / Joomla

  • Photo & Video
      • Tips
      • Equipment
      • Gallery
  • Personal Computer
      • Security
      • Programs
      • Operating System Tips
      • Artificial Intelligence
      • Web
          • Joomla CMS
          • Scripts & Codes
          • Optimization
          • Soziale Medien
Werbung

Move the Off Canvas Toggle Button in Gantry 5 / Joomla

created on
  Friday, 30 December 2022
edited on
  Sunday, 04 January 2026
by
  Stefan Trucker  

    Since I wanted to position the Off-Canvas Toggle button next to the logo in the header bar in order to define them together as a "Sticky Header", I had to redefine the position manually. Where to find the file and what you can do with it is summarized in this article.

    The Implementation

    In Gantry 5, the template is distributed across many individual components, which makes the site highly modular. However, it often takes a long time to find the desired function, especially if you're a hobby programmer like me.

    With my current template, I wanted to integrate the off-canvas toggle button into the header, so I had to search through several Gantry 5 components to create an override for it.

    The file to be modified can be found at

     media/gantry5/engines/nucleus/templates/page.html.twig  (formerly template/common/engine/templates/page.html.twig)

    Remove the following code here

    Code in Ablage kopieren
    Code in Ablage kopieren

    Create Template Override

    To ensure that changes are not overwritten during an update, the file must be placed in the template folder. This ensures that the file optimized for the template is also located with the corresponding template. Here's how to do it:

    /templates/YOUR_TEMPLATE/custom/engine/page.html.twig 

    This code can then be inserted wherever you want the toggle button to appear. In my case, it was in the sticky header. Simply create a custom HTML particle with this code in the Layout Manager in Gantry 5.

    To make the button visible in tablet mode as well, go to the Styles settings and select Menu Settings at the very bottom to ensure the menu is always displayed, not just in mobile view.

    • Joomla CMS Editing / Creating new Joomla language files
      8 / 8 Astroid Framework Template 2 Offcanvas ICO modification
    FaLang translation system by Faboba
    Werbung
    • Projects Zeigbares
    • 3D Printing 3D Printing FDM / FFF
        • Back
        • Guides & Help
        • Facts & Tips
        • FDM Design Guide
        • FDM 3D Printing Help
        • STL. Collection
        • Back
        • Purchase Advice
        • Filament Finder
            • Back
            • - All -
            • ABS
            • ASA
            • CPE
            • HIPS
            • PA
            • PC
            • PET
            • PETg
            • PCTG
            • PEEK
            • PLA
            • PP
            • PVB
            • Composite
            • Blends
        • 3D Printer 3D Printer
        • Components
            • Back
            • Extruder Extruder
            • Mainboards
        • FDM Firmware
            • Back
            • Klipper Klipper
            • RepRap Firmware
            • Marlin Firmware Marlin Firmware
            • Repetier Firmware Repetier Firmware
            • G-Codes & Commands
    • Tech Hard & Software
        • Back
        • Photo & Video
            • Back
            • Tips
            • Equipment
            • Gallery
        • Personal Computer
            • Back
            • Security
            • Programs
            • Operating System Tips
            • Artificial Intelligence
            • Web
                • Back
                • Joomla CMS
                • Scripts & Codes
                • Optimization
                • Soziale Medien
    • Craft Corner
        • Back
        • Production
        • RC-Sport Funkgesteuert

        • Back
        • Pure Fun
        • Laser Gravieren / Schneiden
        • CNC Fräsen
    • Vita everyday life
        • Back
        • Living Space
        • Home & Living
        • Real estate search
        • Balcony & Garden
        • Back
        • Wellbeeing


    • About About Stefan
        • Back
        • Career
        • Portfolio (2)
        • Gönne mir was (2)
    • Unterstütze Projekt & Mich
    • Impressum
    • Datenschutzerklärung
    • Anmeldung
        • Back
        • Registrierung
    • Sitemap
     Design & Implementation by Stefan J. Trucker

    Urheberrecht

    Die durch den Seitenbetreiber erstellten Inhalte und Werke auf dieser Website unterliegen dem österreichischen Urheberrecht. Beiträge Dritter sind als solche gekennzeichnet.
    Die Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung außerhalb der Grenzen des Urheberrechts bedürfen der schriftlichen Zustimmung des jeweiligen Autors bzw. Erstellers.
    Downloads und Kopien dieser Seite sind nur für den privaten, nicht kommerziellen Gebrauch gestattet.

    Sämtliche Bilder, Texte und Videos auf dieser Seite wurden vom Betreiber selbst erstellt, sofern nicht anders angegeben.

    • Joomla
    • Astroid

    Werbung

    3D Jake