0
Welcome Guest! Login
0 items Join Now

Add text in mobile menu icon

  • Add text in mobile menu icon

    Posted 3 years 3 months ago
    • Hello.
      I want to add text to the mobile menu icon. For achecker.ca/ validation. Could you please tell me which file to edit?
      Thank you for your help.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Add text in mobile menu icon

    Posted 3 years 3 months ago
    • Use this code...
      .g-offcanvas-toggle .fa-bars:after {
        content: "Menu";
        font-family: "Roboto";
        font-weight: 400;
      }

      To create a custom CSS compatible with Gantry 5 please read this http://docs.gantry.org/gantry5/tutorials/adding-a-custom-style-sheet .

      Remember to recompile CSS from base outline too.


      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: Add text in mobile menu icon

    Posted 3 years 3 months ago
    • Thank you. I need to know if there is a twig file i can alter if needed.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Add text in mobile menu icon

    Posted 3 years 3 months ago
    • No there isn't - the menu system is an inherent part of Core Gantry 5 and the mobile menu code in particular forms part of main.js which is obfuscated and minimised code so you cannot change that.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.051 seconds