How to add a custom (google) web font to ZOHO Sites? For all browsers! HERE IS MY SOLUTION!

How to add a custom (google) web font to ZOHO Sites? For all browsers! HERE IS MY SOLUTION!

Many users want to add a custom font to ZOHO SITES.
Here is my solution (for all browsers):

1. Choose and download your (legal) web font to your local drive. For example pick one at google fonts (https://fonts.google.com/) - I´ve choosen the "AmaticSC-Bold.ttf" (truetype format .ttf)

2. Go to Fontsquirrel Webfont Generator (https://www.fontsquirrel.com/tools/webfont-generator) and upload all your fonts you wish to integrate in you site.

3. Choose "Expert mode" and activate all of the following Font Formats: TrueType, WOFF, WOFF2, EOT, Lite, and SVG. (Because all the different browsers just supports some of the formats, if you want that your font is shown in all browsers choose all the format types - here you can find a comparison list https://socialcompare.com/en/comparison/browser-fonts-support-comparison) 

4. Keep all the other settings and click the "download the kit" button.

5. Extract all the files and upload all of them to a folder called fonts which you have to create in files (Manage -> Sttings -> Files) the path will be /files/fonts

6. Open the stylesheet.css file (one of the downloaded files in the fontsquirrel kit) and copy the whole code, then go to Theme -> Custom CSS Editor and paste the code there. Then you have add the path (/files/fonts/) before the name of the font files, it should look like this:

  1. /*! Generated by Font Squirrel (https://www.fontsquirrel.com) on July 23, 2017 */

  2. @font-face {
  3.     font-family: 'amatic_scbold';
  4.     src: url('/files/fonts/amaticsc-bold-webfont.eot');
  5.     src: url('/files/fonts/amaticsc-bold-webfont.eot?#iefix') format('embedded-opentype'),
  6.          url('/files/fonts/amaticsc-bold-webfont.woff2') format('woff2'),
  7.          url('/files/fonts/amaticsc-bold-webfont.woff') format('woff'),
  8.          url('/files/fonts/amaticsc-bold-webfont.ttf') format('truetype'),
  9.          url('/files/fonts/amaticsc-bold-webfont.svg#amatic_scbold') format('svg');
  10.     font-weight: normal;
  11.     font-style: normal;

  12. }​

Click Save and close!


!NOTE! All the custom added fonts will not appear in the ZOHO Sites Visual Editor font list, you have to add code at the CSS classes in HTML/CSS Editor in the CSS section.


7. Now open Templates - > HTML/CSS Editor and switch to CSS section. You have to add the font-family name from your prior edited Custom CSS file to the CSS classes you wish. !! IMPORTANT: Your new font name should be the first in the list!
It should look like this:

  1. h1 {
  2. font-family:$BodyH1FontFamily['amatic_scbold', 'Playfair Display', Georgia, serif];
  3. font-size:$BodyH1FontSize[72px];
  4. color:$BodyH1TextColor[#413f35];
  5. }
  6. h2 {
  7. font-family:$BodyH2FontFamily['amatic_scbold', 'Playfair Display', Georgia, serif];
  8. font-size:$BodyH2FontSize[60px];
  9. color:$BodyH2TextColor[#413f35];
  10. }
  11. h3 {
  12. font-family:$BodyH3FontFamily['amatic_scbold', 'Playfair Display', Georgia, serif];
  13. font-size:$BodyH3FontSize[48px];
  14. color:$BodyH3TextColor[#413f35];
  15. }
  16. h4 {
  17. font-family:$BodyH4FontFamily['amatic_scbold', 'Playfair Display', Georgia, serif];
  18. font-size:$BodyH4FontSize[36px];
  19. color:$BodyH4TextColor[#413f35];
  20. }
  21. h5 {
  22. font-family:$BodyH5FontFamily['amatic_scbold', 'Playfair Display', Georgia, serif];
  23. font-size:$BodyH5FontSize[30px];
  24. color:$BodyH5TextColor[#413f35];
  25. }
  26. h6 {
  27. font-family:$BodyH6FontFamily['amatic_scbold', 'Playfair Display', Georgia, serif];
  28. font-size:$BodyH6FontSize[24px];
  29. color:$BodyH6TextColor[#413f35];
  30. }
 Edit all the classes you wish, maybe also the Sitename class

  1. .themeSitename {
  2.  font-family:$SiteNameFontFamily['amatic_scbold', 'Playfair Display', Georgia, serif];
  3.  font-size:$SiteNameFontSize[72px];
  4.  color:$SiteNameTextColor[#2b2928];
  5.     font-weight: 700;
  6. }

Hit save and close!

DONE!
Puplish your site and check it in your different browsers!

If something went wrong you can check the demo.html page in the prior downloaded kit.
Or you may ask ZOHO Support or post your question in this forum.

Kind regards Matthias
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      • Sticky Posts

      • Unveiling Zoho Sites 2.0 - A new dimension in website building

        Dear Zoho Sites Users, We are thrilled to announce the launch of Zoho Sites 2.0 today! This refresh represents a significant step forward in the capabilities of Zoho Sites and is crucial for creating a lasting and positive impact on our customers' businesses.
      • Website Accessibility

        I have two sites created in Zoho Sites which are both live. Some questions: 1. Are any of the template themes WCAG 2.1 AA compliant? 2. How do I change the format of a sub-heading in the header section? 3. Is there any way to add focus indication for
      • Visual Editor Webinar

        Join our FREE live webinar to learn how to use the Zoho Sites Visual Editor to easily design your website. Our product specialist will demonstrate how this tool will help you customize your website to suit your requirements.  Register here: https://www.zoho.com/sites/webinars/
      • SEO for your Zoho Sites Website

        Join our live webinar to learn how to use Zoho Sites' SEO tools to boost your website's ranking. Our product specialist will demonstrate everything you need to know about optimizing your web pages to make them search engine friendly. Register here for free: https://www.zoho.com/sites/webinars/
      • Zoho Sites Webinar | Integrations

        Join our FREE live webinar to learn how to integrate both Zoho and third-party products with your Zoho Sites website. Our product expert will demonstrate how to use these integrations to grow, manage, and retain the customers you bring in. Learn how to take your business forward and build stunningly robust and efficient websites. Register here: https://www.zoho.com/sites/webinars/

      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方