Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #497664

    Hi Kreisi, hope you can help:

    I use GoogleFont ‘Droid Sans’ for body and would like to add a custom font ‘SansaSoftSmConPro-Light.eot /otf /ttf /woff’ bought from FontShop.com, for H1-H6. I searched already for your guidance but no results whatever I tried mentioned in the Forum.
    I use an Enfold-Child theme, so I have enfold-child/functions.php and …style.css available. Currently I work on a local installed theme for development. Hope you can help me out. I prefer the @font-face expression. My coding so far:

    In …/enfold-child/customfont I have put the 4 font-files.
    In …/enfold-child/style.css I have put the code:

    @font-face {
    font-family:”SansaSoftSmConPro-Light”;
    src:
    url(…enfoldchild/customfont/SansaSoftSmConPro-Light.eot) format(“eot”),
    url(…enfoldchild/customfont/SansaSoftSmConPro-Light.otf) format(“otf”),
    url(…enfoldchild/customfont/SansaSoftSmConPro-Light.eot) format.ttf) format(“truetype”),
    url(…enfoldchild/customfont/SansaSoftSmConPro-Light.eot) format.woff) format(“woff”),
    font-weight:normal;
    font-style:normal;
    }

    Under ‘Website Styling’, under Tab Fonts I added:

    h1, h2, h3, h4, h5, h6 {
    font-family:”SansaSoftSmConPro-Light”;
    }

    But not showing after Refresh… only showing Helvetica

    #497669

    Hey khoogteyling!

    Have you referred to this post – http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/?

    Regards,
    Yigit

    #497689

    Yes, I found that post helpful, but no results (on screen). Is my font-naming correct or just wrong, causing the problems?
    Or beacuse I work locally and have difficulties to write a direct URL? Or should I disable Google-fonts used? Hope you can help me out.

    • This reply was modified 9 years, 2 months ago by khoogteyling.
    #498213

    Hey!

    Something should have popped in the Console (Dev Tools), you can open it with CMD / Ctrl + Alt + J. In any case it would be more convenient if you could upload the site so we can check it on our ends.

    Regards,
    Josue

    #499138

    I hope I can provide you with logins of the public test site today…

    #499334

    Hey!

    We will keep the thread open and will wait to hear from you :)

    Best regards,
    Yigit

    #499537

    Okay, I think I have set things ready for the custom font implementation. Details are set in Private Content. Could you help me out, and show me where things are put?

    In the domain I created a folder for ‘customfonts’ with the suppled fonts in it (SansaSoftSmConPro-Light).
    All within folder ‘enfold-child’ where my child theme resides.

    So far I tried the code mentioned in private but no appearence of the custom font…

    PS: Maybe it is more cnvenient to add Droid Serif in this way as well, so only one way of addressing the fonts used?
    PS: Now the Heading font is set in orange Google font ‘Dosis’, this should be replaced with the custom ‘Sansa Soft’

    • This reply was modified 9 years, 2 months ago by khoogteyling.
    #499555

    Hey!

    If you access the font file directly it returns a 404 error:

    Best regards,
    Josue

    #499697

    Hi Josue, you are right, I think I made mistake at the right path. An immediate download starts when I use the new URL, in private content. Could you have a look again, please?

    #499772

    Replace the contents of your child style.css with the following:

    /*
    Theme Name: Postharvestnetwork theme
    Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold WordPress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
    Version: 0.1.0
    Author: www.hoogteyling.nl
    Author URI:  www.hoogteyling.nl
    Template: enfold
    */
    
    /*Add your own CUSTOM FONT here:*/
    @font-face {
    font-family:"SansaSoftSmConPro-Light";
    src:
    url(https://new.postharvestnetwork.nl/wp-content/themes/enfold-child/customfonts/SansaSoftSmConPro-Light/SansaSoftSmConPro-Light.eot) format("eot"),
    url(https://new.postharvestnetwork.nl/wp-content/themes/enfold-child/customfonts/SansaSoftSmConPro-Light/SansaSoftSmConPro-Light.otf) format("otf"),
    url(https://new.postharvestnetwork.nl/wp-content/themes/enfold-child/customfonts/SansaSoftSmConPro-Light/SansaSoftSmConPro-Light.ttf) format("truetype"),
    url(https://new.postharvestnetwork.nl/wp-content/themes/enfold-child/customfonts/SansaSoftSmConPro-Light/SansaSoftSmConPro-Light.woff) format("woff"),
    font-weight:normal;
    font-style:normal;
    }
    
    /*Add your own styles here:*/
    html.responsive, .responsive body{
    		overflow-x: hidden;
    
    	}
    	
    
    	/* Headings */
    h1, h2, h3, h4, h5, h6 {
    font-family:”SansaSoftSmConPro-Light”;
    text-transform: uppercase;
    }
    
    #499786

    Thank you for your input, but … still wrong displays of type: see img. Do I need to reset all the (already made) settings in theme’s General Styling / Fonts? Or set to ‘Default’?
    I deleted already the Quick CSS code to try to solve this? Almost there, I think ;)

    #499790

    Can you make the theme files writable from the Dashboard or provide a temporary FTP account?

    #499796

    Here you are — btw I see my theme looks completely out of order at this moment… I will not touch it for an hour or so?
    Thanks in advance!

    • This reply was modified 9 years, 2 months ago by khoogteyling.
    #500024

    Sorry Kreisi-Support, tomorrow a demonstration of the site so far… I re-adjusted with Google font Dosis for now — please leave it this way for my demo on 9th of september. I’ll send you a message when ready…

    #500132

    OK, looking forward to hearing from you.

    Regards,
    Josue

    #500285

    Hello Kreisi, Josue,
    The site is free for you to alter the style-css to add the custom font

    #500786

    Check it.

    Regards,
    Josue

    #501029

    Dear Josue, thanx so much, you helped me very much! A question related: in panel Quick CSS I have made some alterations. Could I — without doing harm to the code you made — put / add this Quick CSS code into enfold-child’s ‘style.css’, under the font codes?

    #501413

    Hey,

    That should work yes, but please be sure to back up the code you have in Quick CSS just in case.

    Best regards,
    Rikard

    #502564

    Thx Kreisi and support! Case closed with gratitude!

    #502589

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘Add Custom Font 'SansaSoftSmConPro-Light.eot' from FontShop.com’ is closed to new replies.