Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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

    #663153

    Hey 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,
    Jordan

    #663222

    Below, let me know!

    Thanks!

    #663817

    Hey!

    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!
    Josue

    #674064

    Ahoy,

    I tried adding this with the code snippet plugin but nothing happened… Please advise

    #674445

    Hi,

    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,
    Josue

    #674523

    where 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

    #675042

    Hi,

    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,
    Josue

    #675216

    Ahoy,

    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.
    #675470

    Hi,

    Can you re-install the theme and disable all third-party plugins, those <style></style> codes shouldn’t be there.

    Best regards,
    Josue

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