Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to use local fonts in Maximenu

How to use local fonts in Maximenu 13 Feb 2020 07:03 #55044

  • Magh
  • Magh's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Hello again,

I need to style the menu fonts and use local fonts loaded in the template. It's a gantry 5 template and all the local fonts used throughout the site are imported throught its main custom.scss e.g. to use Roboto Condensed:
@import "dependencies";
@include font-face('RobotoCL', 'gantry-theme://fonts/RobotoCond-Light-webfont', 300);

Then by specifying font-family: RobotoCL anywhere e.g. in an article's code or a class, that font is used. But from Maximenu Parameters this doesn't happen - it keeps requiring google fonts. How can I use the local fonts instead?

Please Log in or Create an account to join the conversation.

How to use local fonts in Maximenu 13 Feb 2020 07:39 #55046

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 22400
  • Karma: 427
  • Thank you received: 2813
Hi
you should do that using custom css because the system will automatically check if the font exists on GoogleFonts, and if yes it will load it
CEd
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

How to use local fonts in Maximenu 14 Feb 2020 00:50 #55053

  • Magh
  • Magh's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Ah, so the relevanty styling for local fonts is to be added in the menu's own custom.css, found in Parameters - if I understood correctly.

This could be a feature for a next version of your module - to be able to use local fonts (as defined from the template).

Please Log in or Create an account to join the conversation.

How to use local fonts in Maximenu 14 Feb 2020 08:20 #55055

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 22400
  • Karma: 427
  • Thank you received: 2813
yes thank you for your suggestion, I note this :)
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

How to use local fonts in Maximenu 27 Feb 2020 17:37 #55149

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 22400
  • Karma: 427
  • Thank you received: 2813
Hi
since the 9.0.2 (pro) you can choose how to load the google fonts
you can set it to "custom" and write your own urls, or set "none" if you already have your own font loaded
hope it helps
CEd
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

How to use local fonts in Maximenu 28 Feb 2020 03:46 #55153

  • Magh
  • Magh's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Works. :)

Tested for top menu, submenu.
And the font size field also takes rem vaules and works fine (although rems are not included in its tooltip description).

Please Log in or Create an account to join the conversation.

How to use local fonts in Maximenu 28 Feb 2020 06:59 #55155

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 22400
  • Karma: 427
  • Thank you received: 2813
great
that is right, you can use any unit since the V9
Joomlack Webmaster and Developer
The following user(s) said Thank You: Magh

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.252 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 395 guests and one member online