-
AuthorPosts
-
July 20, 2016 at 7:33 pm #663094
Ahoy,
I just updated my enfold theme and the custom fonts I had are now gone… below is the quick css that is no longer working…the font will not load…
The fonts are in the right spot
Please Advise
July 21, 2016 at 12:19 am #663153Hey mcraig77,
Could you please also provide login details to your site, so that we can have a closer look. You can place the information in the Private Content section of your reply.
Best regards,
JordanJuly 21, 2016 at 7:49 am #663222Below, let me know!
Thanks!
July 22, 2016 at 11:49 am #663817Hey!
Try adding this at the very end of your theme / child theme functions.php file:
add_action('wp_head', function() { ?> <style> @font-face { font-family: ‘caviar_dreamsregular’; src: url(“http://monarchejuice.com/fonts/caviardreams_regular_macroman/CaviarDreams-webfont.eot”); src: url(“http://monarchejuice.com/fonts/caviardreams_regular_macroman/CaviarDreams-webfont.eot?#iefix”) format(“embedded-opentype”), url(“http://monarchejuice.com/fonts/caviardreams_regular_macroman/CaviarDreams-webfont.woff”) format(‘woff’), url(“http://monarchejuice.com/fonts/caviardreams_regular_macroman/CaviarDreams-webfont.ttf”) format(‘truetype’), url(“http://monarchejuice.com/fonts/caviardreams_regular_macroman/CaviarDreams-webfont.svg#caviar_dreamsregular”) format(‘svg’); font-weight: normal; font-style: normal; } </style> <?php });
Cheers!
JosueAugust 18, 2016 at 7:27 am #674064Ahoy,
I tried adding this with the code snippet plugin but nothing happened… Please advise
August 19, 2016 at 3:31 am #674445Hi,
Make sure the files exist:
http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_regular_macroman/CaviarDreams-webfont.eot
Or change the URLs to point to the correct location.
Best regards,
JosueAugust 19, 2016 at 6:54 am #674523where did you find this url?
this is the url (which is in the code you provided me and where it is located)
http://monarchejuice.com/fonts/caviardreams_regular_macroman/CaviarDreams-webfont.eot
August 20, 2016 at 4:45 pm #675042Hi,
Looks like it’s working now, i modified the Snippets > Font code (there was a quote issue), regarding the errors, those are coming from this block at the end of the page:
<style> @font-face { font-family: 'caviar_dreamsregular'; src: url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_regular_macroman/CaviarDreams-webfont.eot"); src: url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_regular_macroman/CaviarDreams-webfont.eot?#iefix") format("embedded-opentype"), url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_regular_macroman/CaviarDreams-webfont.woff") format('woff'), url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_regular_macroman/CaviarDreams-webfont.ttf") format('truetype'), url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_regular_macroman/CaviarDreams-webfont.svg#caviar_dreamsregular") format('svg'); font-weight: normal; font-style: normal; } </style> <style> @font-face { font-family: 'caviar_dreamsbold'; src: url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_bold_macroman/Caviar_Dreams_Bold-webfont.eot"); src: url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_bold_macroman/Caviar_Dreams_Bold-webfont.eot?#iefix") format("embedded-opentype"), url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_bold_macroman/Caviar_Dreams_Bold-webfont.woff") format('woff'), url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_bold_macroman/Caviar_Dreams_Bold-webfont.ttf") format('truetype'), url("http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_bold_macroman/Caviar_Dreams_Bold-webfont.svg#caviar_dreamsregular") format('svg'); font-weight: normal; font-style: normal; } </style>
I don’t know the source of it to be honest.
Best regards,
JosueAugust 21, 2016 at 6:27 am #675216Ahoy,
It still looks like some of the fonts aren’t changing. If I add the font back to this folder they work
http://monarchejuice.com/wp-content/themes/enfold/css/caviardreams_regular_macroman/
but whenever wordpress updates they get deleted, is there a way to change the file location to
http://monarchejuice.com/fonts/caviardreams_regular_macroman/CaviarDreams-webfont.eot
so when things do update they wont delete?
I do have it working now, until the next update…
- This reply was modified 8 years, 3 months ago by mcraig77.
August 22, 2016 at 12:33 am #675470Hi,
Can you re-install the theme and disable all third-party plugins, those
<style></style>
codes shouldn’t be there.Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.