Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1406882

    Dear Kriesis,
    I’m running a website in german and english with to different URLs for each language and using WPML:
    neu.muenzenwoche.de and new.coinsweekly.com
    Sometimes, I think after a theme update, the custom fonts in the english version are replaced with system fonts (Times, Helvetica). This was my quick solution:

  • delete the custom fonts in the theme options
  • switch to standard fonts in the general styling, which may not be necessary
  • load the custom fonts from the mediathek again
  • change the font settings to custom fonts again
  • What can I do to prevent the font replacement?

    Best regards
    Anne

#1407038

Hi Anne,

Try to temporarily disable any caching and optimization plugins before updating.
Also, temporarily disable CSS File Merging And Compression and Javascript File Merging And Compression.
Hope this helps.

Best regards,
Nikko

#1407113

Hi Nikko,
thank you for the advice. I always disable css and js merging when starting a project and keep this setting. Unfortunately the issue happend again this morning in the german version. I fixed it as described above.
In the Theme Options under “Performance” there are some filters for “Custom Font Display Behaviour (Global Layout)”: auto (=default > now selected), block, swap, fallback, optional.
Would a change at this point possibly solve the isssue? All custom fonts are loaded from local server.

Best regards Anne

#1407206

Hi Anne,

I’m not really sure if that would help but it is possible that it might help.
When you try to update again, can you setup a staging site first? basically a duplicate of your site, and try to update there first, and if it happens again, delete the staging site and recreate it, then we’ll try to update it and check further on the issue.

Best regards,
Nikko

#1407215

Hi Nikko,
we are running a staging site to test further features for the main site. I can’t just delete this site (it’s too complex) but I can update the theme there first and let you know if the issue occurs there.

Best regards Anne

#1407314

Hi Anne,

It’s not your live site that should be removed but a staging site (it’s just a clone of your site).
Here’s an article that should help with cloning your site: https://themeisle.com/blog/clone-a-wordpress-website
Basically you’ll just clone your site and try to update the cloned version and if it does show the issues again, just delete the clone that has been updated, clone your live site again and we’ll try to update it for you and try to debug it on the process.

Best regards,
Nikko

#1439189

Hi Nikko, dear Kriesi team,
sorry for my very late reply and I hope the topic is not closed yet. In between we handled the issue as discribed above:
– delete the custom fonts in the theme options
– switch to standard fonts in the general styling, which may not be necessary
– load the custom fonts from the mediathek again
– change the font settings to custom fonts again

But this is not a solution and now the issue appears very often. The problem mainly occurs on the English domain new.coinsweekly.com.
I can’t clone the website because it is too big and too complex. Switching filters for “Custom Font Display Behaviour (Global Layout)” to “Swap” did not solve the problem. If nothing helps we will change to GoogleFonts instead of self hosted fonts.

Any Ideas?
Best regards
Anne

#1439316

Hi,
Thank you for your patience, this seems strange and I have not seen any issues like this. Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

function custom_avf_post_css_create_file( $create )
{
	return false;
}
add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );

Then enable Enfold Theme Options ▸ Performance ▸ Delete old CSS and JS files and change your Performance setting to Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression ▸ Use minified theme files without merging
and clear any cache plugin and see if it happens again in the future, if it does don’t fix with the steps above but include a admin login in the Private Content area so we can examine.
We will leave this open to see it is happens again.

Best regards,
Mike

#1439485

Hello Mike,
thanks for your reply and I made all setting as recommended. At first as always after changes self hosted fonts (lato v23 latin 700 ( font-family: lato-v23-latin-700 ) and lato v23 latin ( font-family: lato-v23-latin ) were ignored in the german version. I fixed it as discribed above and I will observe the behavior after the changes.

Best regards Anne

#1444914

Dear Kriesis, hello Nikko, hello Mike,
unfortunately the issue with missing self hosted fonts is not resolved. It happens about three times a week and after changes in the Enfold Theme Options, e.g. after changing the copyright infos in the footer. If you want to have a closer look I ‘ll provide you the logon data.
If the problem is unsolvable, I will switch to Google Fonts, which is not the preferred solution.

Best regards
Anne

#1444964

Hi,
Please include an admin login in the Private Content area so we can investigate.
Does this happen in only one language or both?

Best regards,
Mike

#1444971

Hi Mike,
please find the login data below. The issue mostly happens for one language especialy the english version.

Thanks and best regards
Anne

#1445141

Hi,
I see a CORS error for your font on the EN site, which is on a different domain than your DE site.
I think that you are using the WPML settings to use two domains and the font is on the DE domain, so please ask your webhost to set the server to allow “Access-Control-Allow-Origin” for both domains so the font can be shared. This has to be done on the server and each server is different so they will know the best way for your server.
I posted the error below for their reference.

Best regards,
Mike

#1445156

Hello Mike,
thank you very much for your recommendation and I will contact my webhost to make the settings.
Best regards Anne

#1445190

Hi,
Glad to help, we will leave this open for now, please let us know when this is sorted out and we should close this thread.

Best regards,
Mike

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