Avada resources still loading from localhost after database migration [closed]
-
12-05-2021 - |
Question
I am using WP Migrate DB to migrate WordPress website built with Avada from local to a VM.
I am doing a find and replace with
Find: //localhost/website
and Replace: //10.60.8.118/website
Find: C:\xampp\htdocs\website
and Replace: /var/www/html/website
All the links are fine but fontawesome, icomoon and fonts which are being loaded from Avada are showing an error in console. I don't understand why still I have localhost URLs. (When I search for the term localhost in database I get no results)
Access to Font at 'http://localhost/website/wp-content/themes/Avada/includes/lib/assets/fonts/fontawesome/fontawesome-webfont.woff2?v=4.7.0' from origin 'http://10.60.8.118' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://10.60.8.118' is therefore not allowed access.
and so on. Also I get an error "URL can't be found" when I go to inner pages. (Note that I have reset my permalink and also checked .htaccess file which is default from WordPress)
May I know what might be wrong?
Solution
This issue with your file path URL.
Still, Fontawesome trying to load fonts from "//localhost/website/wp-content/themes/Avada/includes/lib/assets/fonts/"
Change all of your file path URL with your new site URL.
OTHER TIPS
Avada > Theme Options > Advanced > Dynamic CSS & JS, and clear fusion cache.