Site logo

[Support request] Can't figure out http file path for font files i uploaded to server.

Home Forums Support [Support request] Can't figure out http file path for font files i uploaded to server.

Home Forums Support Can't figure out http file path for font files i uploaded to server.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #728470
    Ryan

    I am following these directions to add a custom font to my child theme.

    https://docs.generatepress.com/article/adding-local-fonts/

    The function appears to be working properly because the new font I am uploading appears in the customizer. However, when I select my new font, it doesn’t display and is going back to a default.

    All I can think is that I’m getting the URL path incorrect in my CSS. I don’t know where to find the correct HTTP:// file path after uploading to the server using SFTP:// with FileZilla.

    Could being on a temporary domain be the cause?

    #728510
    Ryan

    So I called my hosting company and just got the URL. The file path ended up being this…

    http://oj9.8bd.myftpupload.com/wp-content/themes/generatepress_child/fonts/

    This is the SFTP file path that I origionally had…

    sftp://(SFTP user)@oj9.8bd.myftpupload.com/home/(SFTP user)/html/wp-content/themes/generatepress_child/fonts

    I’m leaving this issue open just to know if there was a better way to have got my http file path on my WordPress site after uploading it using sftp. If it makes a difference, I use the managed WordPress site service through GoDaddy versus a basic cPanel Linux server. I ask because I want to know if it will be different between hosting providers or different for any other reason.

    #728574
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    That URL looks correct. There isn’t really a better way. The URL to your child theme would always be yoursite.com/wp-content/themes/generatepress_child/

    Let me know if you need more info 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.