New Landing How can we help? Atelier Problems with Myfonts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #176974
    kgeee
    Member
    Post count: 67

    Hi

    I’, trying to get Gill Sans Light and Bold to work with the theme.

    I cannot find the documentation for this. But I have tried implementing it like this

    /* Import webfonts */
    @import url(“//hello.myfonts.net/count/2e269f”);

    @font-face {font-family: ‘GillSansMTStd-Light’;src: url(‘webfonts/2E269F_0_0.eot’);src: url(‘webfonts/2E269F_0_0.eot?#iefix’) format(’embedded-opentype’),url(‘webfonts/2E269F_0_0.woff2’) format(‘woff2’),url(‘webfonts/2E269F_0_0.woff’) format(‘woff’),url(‘webfonts/2E269F_0_0.ttf’) format(‘truetype’);}

    @font-face {font-family: 'GillSansMTStd-Bold';src: url('webfonts/2E269F_1_0.eot');src: url('webfonts/2E269F_1_0.eot?#iefix') format('embedded-opentype'),url('webfonts/2E269F_1_0.woff2') format('woff2'),url('webfonts/2E269F_1_0.woff') format('woff'),url('webfonts/2E269F_1_0.ttf') format('truetype');}
     
    html, body, p, h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    
    	font-family: GillSansMTStd-Light !important;
    	font-weight: normal;
    	font-style: normal;
    }

    But my CSS-style is overwritten by the theme.

    I’ve tried attaching it via the custom fonts. I’ve read the uploader does not work. Instead I have tried putting the font files in to separate folders:

    /wp-content/uploads/redux/custom-fonts/GillSansBold
    /wp-content/uploads/redux/custom-fonts/GillSansLight
    (each folder contains a set of 4 files. I.e.
    2E269F_0_0.eot
    2E269F_0_0.ttf
    2E269F_0_0.woff
    2E269F_0_0.woff2

    This results in the font list in theme settings gets populated by GillSansBold (Light is not showing up). But I cannot select the font in the list. Nothing happens when I click it.

    Can you provide me with any ideas on how to integrate the fonts proporly? I prefer using the child theme style.css file so I can stay organised.

    #176993
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Where did you placed the custom css? Inside the theme options or inside the style.css?
    Can you provide your site url and admin credentials to check it?

    Use the private reply.
    -Rui

    #176998
    kgeee
    Member
    Post count: 67
    This reply has been marked as private.
    #177316
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    The //hello.myfonts.net/count/2e269f need to be a full url

    – Kyle

    #177320
    kgeee
    Member
    Post count: 67

    Hi Kyle

    Are you sure? It works fine with the Neighbourhood theme. And the code is direct copy/paste from the CSS file from MyFonts.

    Also, can you specify wether this will work with the child theme or will have to implemented via the theme option settings?

    #177805
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    What instructions are provided by myfonts?

    – Kyle

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register