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: 9
  • 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: 22129
  • Karma: 427
  • Thank you received: 2785
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: 9
  • 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: 22129
  • Karma: 427
  • Thank you received: 2785
yes thank you for your suggestion, I note this :)
Joomlack Webmaster and Developer

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

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

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 466 guests and no members online