Archived topic
Can't figure out http file path for font files i uploaded to server.
2 replies · Started by Ryan on November 15, 2018
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?
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.
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 :)