-
AuthorPosts
-
May 9, 2023 at 12:40 pm #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
AnneMay 10, 2023 at 6:46 pm #1407038Hi 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,
NikkoMay 11, 2023 at 1:26 pm #1407113Hi 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
May 12, 2023 at 10:51 am #1407206Hi 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,
NikkoMay 12, 2023 at 11:16 am #1407215Hi 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
May 13, 2023 at 11:02 pm #1407314Hi 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,
NikkoApril 4, 2024 at 12:17 pm #1439189Hi 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 againBut 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
AnneApril 6, 2024 at 1:26 pm #1439316Hi,
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,
MikeApril 8, 2024 at 11:13 am #1439485Hello 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
May 21, 2024 at 1:05 pm #1444914Dear 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
AnneMay 21, 2024 at 5:31 pm #1444964Hi,
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,
MikeMay 21, 2024 at 5:59 pm #1444971Hi Mike,
please find the login data below. The issue mostly happens for one language especialy the english version.Thanks and best regards
AnneMay 22, 2024 at 11:36 am #1445141Hi,
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,
MikeMay 22, 2024 at 12:58 pm #1445156Hello Mike,
thank you very much for your recommendation and I will contact my webhost to make the settings.
Best regards AnneMay 22, 2024 at 5:01 pm #1445190 -
AuthorPosts
- You must be logged in to reply to this topic.