Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1218087
    PapertownDesign
    Participant

    Hi Themeco, big fan of your X theme – I use it everywhere. 2 licenses of my own, another for my old man.

    I am trying to incorporate a webfont that I purchased from MyFonts into my child theme, and I’m unsure about the file structure.

    I uploaded my font to a ‘webfonts’ subfolder within my child theme and changed the child theme’s stylesheet css to reference them. I did this using SiteGround’s file manager within their cPanel. I’ve been using the global css on the customiser to call this font but I’m having no luck. I put this issue down to my own inability, not with the theme.

    Should I have uploaded the webfont to the parent theme? And should I be using a different method than global css customiser to implement the font?

    Thanks for any help you can offer.

    All the best,
    Sam

    #1218166
    Thai
    Moderator

    Hi Sam,

    In this case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / Password
    – FTP Account

    Don’t forget to select Set as a private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1218412
    PapertownDesign
    Participant
    This reply has been marked as private.
    #1218639
    Rue Nel
    Moderator

    Hello Sam,

    Thanks for providing the information. To resolve this issue, you must supply the direct path of the font file. Please have you code updated and use this instead:

    
    @font-face {
        font-family: 'CastorOne';
    	src: url('http://www.wildcraft-boutique.com/wp-content/themes/x-child/webfonts/324C09_0_0.eot');
    	src: url('http://www.wildcraft-boutique.com/wp-content/themes/x-child/webfonts/324C09_0_0.eot?#iefix') format('embedded-opentype'),url('http://www.wildcraft-boutique.com/wp-content/themes/x-child/webfonts/324C09_0_0.woff2') format('woff2'),url('http://www.wildcraft-boutique.com/wp-content/themes/x-child/webfonts/324C09_0_0.woff') format('woff'),url('http://www.wildcraft-boutique.com/wp-content/themes/x-child/webfonts/324C09_0_0.ttf') format('truetype');
    }

    Please let us know if this works out for you.

    #1219043
    PapertownDesign
    Participant

    Hi Rue Nel, thanks so much for this.

    I knew it would be something I’d missed. When I tried it I had started the src at: ‘/webfonts’ as opposed to using the entire path. I’ve run through the different headings and p styles, and it works perfectly.

    Thanks for taking the time to help.

    All the best,
    Sam

    #1219077
    Lely
    Moderator

    You’re welcome Sam!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1218087 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>