-
AuthorPosts
-
January 8, 2017 at 8:52 pm #730902
Hi,
I would appreciate your help installing a custom font to my enfold theme. In the end, I want the whole website to have my custom font.
I have uploaded the desired font to https://www.fontsquirrel.com/tools/webfont-generator and got the zip.How do I go from there?
Thank you very much for your help,
Berni
January 8, 2017 at 9:35 pm #730904Hi Bernhard!
Please take a look here
https://kriesi.at/support/topic/using-custom-font-with-enfold/all the things / resources that are been there explain the process.
Let us know if we can do anything elseCheers!
BasilisJanuary 8, 2017 at 10:35 pm #730915Hi,
thank you for your fast reply.I did follow this description step by step:
http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/However, unfortunately without any result. Is it possible that you have a quick look?
I have attached my login data.
Thank you very much for your suppport,
Berni
January 11, 2017 at 6:10 pm #732186Hi,
I can’t find your @font face code anywhere. Where did you implement it? please follow the tutorial correctly and let us know when you’re ready. If you need help with it, then feel free to hire a freelance developer for this job: http://kriesi.at/contact/customization
Best regards,
AndyJanuary 14, 2017 at 7:30 pm #733632Hi Andy,
thank you for your assistance.
I have successfully uploaded the custom font now.
I would like to use it for the whole theme, so everything is in that font.What code do I have to add to the Quick CSS to achieve that? Is the Quick CSS the right place to implement the code?
Thank you,
Berni
January 16, 2017 at 6:54 am #733898Hi,
To upload the custom fonts manually using CSS code please follow the below steps:
1. Generate the webfont kit from https://www.fontsquirrel.com/tools/webfont-generator
2. Extract The files and copy the @font css code from stylesheet.css to Enfold child theme styles.css or Enfold > General Styling > Quick CSS@font-face { font-family: 'YOUR-FONT-NAME'; src: url('YOUR-FONT-NAME.woff2') format('woff2'), url('YOUR-FONT-NAME.woff') format('woff'); font-weight: normal; font-style: normal; }
3. Copy the woff and other font files to child theme folder.
4. Now you can start assigning new font family to headings and paragraph using custom css in your child theme styles or in the Quick CSS section
NOTE: If the below code don’t change anything deactivate caching plugin and try adding “!important” to the font-family: ‘YOUR-FONT-NAME’!important;p { font-family: 'YOUR-FONT-NAME'; font-size: 18px; }
Another way to do this would be to use a plugin like https://wordpress.org/plugins/use-any-font/ which will make the job of assigning fonts very easy.
Hope this helps :)
Should you require any further assistance please feel free to get back to us.
Best regards,
Vinay- This reply was modified 7 years, 10 months ago by Vinay.
April 12, 2017 at 3:00 am #776403Hi Vinay,
I followed the instructions to generate and add new fonts to my custom styles.css file. I also uploaded all of the font files. I couldn’t see any change so added the !important to each @font-face and again no change. Did I miss something in the instructions? Any help would be appreciated.
/* NEW FONTS */
/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on April 11, 2017 */
@font-face {
font-family: ‘freelanduploaded_file’!important;
src: url(‘freeland-1-webfont.woff2’) format(‘woff2’),
url(‘freeland-1-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_novablack’!important;
src: url(‘proximanova-black-webfont.woff2’) format(‘woff2’),
url(‘proximanova-black-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_nova_rgbold’!important;
src: url(‘proximanova-bold-webfont.woff2’) format(‘woff2’),
url(‘proximanova-bold-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_nova_rgbold_italic’!important;
src: url(‘proximanova-boldit-webfont.woff2’) format(‘woff2’),
url(‘proximanova-boldit-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_novaextrabold’!important;
src: url(‘proximanova-extrabld-webfont.woff2’) format(‘woff2’),
url(‘proximanova-extrabld-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_novalight’!important;
src: url(‘proximanova-light-webfont.woff2’) format(‘woff2’),
url(‘proximanova-light-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_novalight_italic’!important;
src: url(‘proximanova-lightit-webfont.woff2’) format(‘woff2’),
url(‘proximanova-lightit-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_nova_rgregular’!important;
src: url(‘proximanova-regular-webfont.woff2’) format(‘woff2’),
url(‘proximanova-regular-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_novaregular_italic’!important;
src: url(‘proximanova-regularit-webfont.woff2’) format(‘woff2’),
url(‘proximanova-regularit-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_novasemibold’!important;
src: url(‘proximanova-semibold-webfont.woff2’) format(‘woff2’),
url(‘proximanova-semibold-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}@font-face {
font-family: ‘proxima_novasemibold_italic’!important;
src: url(‘proximanova-semiboldit-webfont.woff2’) format(‘woff2’),
url(‘proximanova-semiboldit-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}April 12, 2017 at 7:00 am #776480Hi,
Are all the font files uploaded to the child theme folder?
If you are using any caching plugins please purge the cache from the plugin settings and deactivate the caching plugin for testing purpose and try again. Make sure to activate developer mode if you are using Cloudflare.
If you still have any issue please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
VinayApril 12, 2017 at 4:16 pm #776774Hi Vinay,
I have cleared the server cache. The cache plugin is restricted and control by WP Engine. Yes I have the fonts uploaded.
I have included login credentials in the private area.
Thank you
LyseApril 12, 2017 at 9:52 pm #776924Hey!
Thank you for sharing the credentials. The caching plugins do not load the latest CSS files until the cache is expired or purged. Whatever CSS changes you make will not be visible until the caching plugin is deactivated or purge cache each time any CSS changes are applied.
Deactivate all plugins and check if the issue persist.
We will wait for your test results :)
Regards,
VinayApril 19, 2017 at 12:41 am #779723Hi Vinay,
I have tried different options, but can’t make this work at all. I’ve moved all of my fonts under a sub-directory ‘”fonts” in my child theme and editing the CSS code URLs to point to that directory.
I clear the server cache often but no change. I can’t use the fonts.
I also tried the plugin you suggested, but I need to apply the font to a specific element. The element I want to apply the font to is the signature block contained in the slider caption content area. It’s not a specific element by itself.
I also tried inline CSS within the caption textbox, but it does not work and the code disappears when I save the page.
Boy, that seems complicated to do.
Do you have any other suggestions to make this work?
Thanks
LyseApril 21, 2017 at 1:35 pm #781175Hi,
it should work fine. Does it work for you with a different/default WP theme? please let us know about your results. I still think it’s not showing up because of WP Engine’s caching.
Best regards,
AndyApril 29, 2017 at 11:26 pm #785129Hi
I restarted from scratch and all works as expected.
Thanks
LyseMay 1, 2017 at 10:47 pm #786006Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.