• Hello,

    I’m trying to add a custom font family using a child theme but I can’t get it to work. The font files have been uploaded to the cPanel File Manager and I’ve successfully created and activated the child theme. So far, I have the following code in the stylesheet:

    
    @font-face {
    	font-family: GothamNarrow;  
    	src: url(public_html/myusername/wp-content/themes/primer-child/fonts/GothamNarrow-Medium.otf);  
    	font-weight: normal;  
    }
    @font-face {
    	font-family: GothamNarrowBold;  
    	src: url(public_html/myusername/wp-content/themes/primer-child/fonts/GothamNarrow-Bold.otf);  
    	font-weight: bold;  
    }
    h1,
    .page-title {
    	font-family: GothamNarrowBold;
    	font-size: 2.5em; }
    h2 {
    	font-family: GothamNarrowBold;
     	font-size: 2em; }
    h3 {
    	font-family: GothamNarrowBold;
     	font-size: 1.5em; }
    h4 {
    	font-family: GothamNarrowBold;
     	font-size: 1.25em; }
    h5 {
    	font-family: GothamNarrowBold;
    	font-size: 1.125em; }
    h6 {
      	font-family: GothamNarrowBold;
    	font-size: 1em; }
    p {
      	font-family: GothamNarrow; }
    

    Am I missing something?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nadinejc

    (@nadinejc)

    Still looking for help with this…I have also tried the @font-face kit from https://www.cufonfonts.com/font/gotham-narrow but that hasn’t worked either.

    Is there anywhere else I can go for support that will provide a faster response?

    Hello @nadinejc,

    I understand you’re trying to change the fonts on your site. I have tested this in Customize > Additional CSS and your stylesheet code works for me. I would suggest making changes here before you dive in to changing files, this method allows your code to survive an update.

    We have prioritized engineering time to our new Go theme and as such development is limited on this older theme. If you would like to find out more about our new theme and maybe give it a test-drive, you can find it at https://www.ads-software.com/themes/go/. You can see the layouts in action: https://wpnux.godaddy.com/v2.

    Regards,
    Daniel F.

    Thread Starter nadinejc

    (@nadinejc)

    Hi @dfeuster, I added the stylesheet code to Customize > Additional CSS and it works fine on my computer, but it appears not to work on mobile or on anyone else’s computer. Any further thoughts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Font in Child Theme’ is closed to new replies.