Announcement

Collapse
No announcement yet.

Google Fonts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Google Fonts

    What is the best way to use include Google Fonts in the Shadows ReadyTheme?
    Gary

    [email protected]
    www.icCommerce.com

    #2
    You can add an external stylesheet under CSS resources (example below), and then under resource groups make sure to assign it to css_list. Alternatively, you can add additional fonts to the existing "google-fonts". Each font is separated by a pike in the filepath... (Poppins:400,800|Playfair+Display|Lora:400,700). Alternatively, you can simply do an @import in your stylesheet.
    external-fonts.jpg (1695×266)

    Comment


      #3
      I'm wording on dev.paddletramps.com and something is not working right with google fonts.

      I added the google font: https://fonts.googleapis.com/css?family=Poppins:400,800 | Rancho
      I added the CSS: h3{font-family:'Rancho'; color:red;}

      Inspecting the About Us section on the SFNT, the h3 properties show the Rancho font and the color red. And, page shows the font in red but it is not the Rancho font style.

      Does anyone have an idea of what is going on?
      Gary

      [email protected]
      www.icCommerce.com

      Comment


        #4
        Hi Gary,

        Which method did you use to add the call to the font from Google?
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment


          #5
          I used the existing CSS Resource, google-fonts. This resource was already activated and global.



          I edited the File Path and added 'Rancho' to the end. I noticed that the Tag Attribute automatically updated itself and added Rancho to the end.
          I then checked the Resource Groups where I see the css_list, and in that group, google-fonts is assigned and Globally activated.

          If I understand your question I thought this is all I needed to call the font from Google. After it loads, I thought all I needed to do was add a CSS rule to use the Rancho font. Am I missing something?







          Gary

          [email protected]
          www.icCommerce.com

          Comment


            #6
            Hi Gary,

            It looks like you have spaces in the file path to the fonts and are missing the rel attribute. Update your path to this and add the rel="stylesheet" attribute to the tag:
            Code:
            https://fonts.googleapis.com/css?family=Poppins:400,800|Rancho
            Matt Zimmermann

            Miva Web Developer
            Alchemy Web Development
            https://www.alchemywebdev.com
            Site Development - Maintenance - Consultation

            Miva Certified Developer
            Miva Professional Developer

            https://www.dev4web.net | Twitter

            Comment


              #7
              Thanks, Matt
              I got it working.
              Gary

              [email protected]
              www.icCommerce.com

              Comment

              Working...
              X