0
Welcome Guest! Login
0 items Join Now

SOLVED How to enable Google fonts

    • geppo's Avatar
    • geppo
    • Sr. Rocketeer
    • Posts: 120
    • Thanks: 1

    SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • Hi,
      I'm working with Afterburner2 with joomla 3.9 and Gantry4.

      I'm trying to use and test some google fonts but with no luck.
      In gantry 4 editor, under Style menu, there is a Font family selector.
      At the moment I've selected font Zeyada from google fonts but it load teh default Helvetica font.
      If I choos template font or standard fonts from the dropdown list, all work good, but If I select google fonts it seems to override it with default font.
      Why? Should I enable something somewhere?
      thank you so much.

      My site is:
      www.conventiongiocoleriabrianza.it
    • Last Edit: 4 years 2 months ago by geppo.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • Please would you post your URL, superuser id and pswd in the secure tab of your post and I'll have a look for you.

      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.
    • geppo's Avatar
    • geppo
    • Sr. Rocketeer
    • Posts: 120
    • Thanks: 1

    Re: SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • Sorry I notice right now that google fonts are correctly accepted and it came bak to me that the selection of google fonts in gantry setup is not for Body text but only for headers.
      What about to make body use the same font family?

      Administration Credentials now in the original post.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • The template deliberately only changes headings when you change the font in template manager because this can have a dramatic effect on the performance of your site if you use it everywhere. Nevertheless, if you still want to do it, Use this code...
      body {
      	font-family: 'Zeyada', 'Helvetica', arial, serif;
      }

      This is how to create a custom CSS compatible with Gantry 4...

      http://docs.gantry.org/gantry4/tutorials/adding-a-custom-stylesheet

      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.
    • geppo's Avatar
    • geppo
    • Sr. Rocketeer
    • Posts: 120
    • Thanks: 1

    Re: SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • Ok, this was clear.
      Now I was wondering if there is a way to link body font settings to the gantry framework headings setup. so I can change and test body text only selecting it from a dropdown menu and not editing the custom css file.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • Nope. If you want to use the font selected in template manager everywhere then you have to add custom CSS.

      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.
    • geppo's Avatar
    • geppo
    • Sr. Rocketeer
    • Posts: 120
    • Thanks: 1

    Re: SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • ok. Thanks.

      Isn't there a way in css to wirte something like
      body {
      font-family: {H1 font family}
      }

      ?
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • No there isn't - there is no less variable that contains the font name.

      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.
    • geppo's Avatar
    • geppo
    • Sr. Rocketeer
    • Posts: 120
    • Thanks: 1

    Re: SOLVED How to enable Google fonts

    Posted 4 years 2 months ago
    • Ok, perfect.
      that's all ;)

Time to create page: 0.057 seconds