Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress Avada迁移URL未被替换_Wordpress - Fatal编程技术网

Wordpress Avada迁移URL未被替换

Wordpress Avada迁移URL未被替换,wordpress,Wordpress,当我转移了avada主题时,我在locahost设置上有一些错误,因为我在本地构建了站点,然后转移了 Access to Font at 'http://localhost:8081/crescent/wp-content/themes/Avada/includes/lib/assets/fonts/icomoon/icomoon.woff' from origin 'http://crescent.solitudesoftware.co.uk' has been blocked by CORS

当我转移了avada主题时,我在locahost设置上有一些错误,因为我在本地构建了站点,然后转移了

Access to Font at 'http://localhost:8081/crescent/wp-content/themes/Avada/includes/lib/assets/fonts/icomoon/icomoon.woff' from origin 'http://crescent.solitudesoftware.co.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://crescent.solitudesoftware.co.uk' is therefore not allowed access.
(index):1 Access to Font at 'http://localhost:8081/crescent/wp-content/themes/Avada/includes/lib/assets/fonts/icomoon/icomoon.ttf' from origin 'http://crescent.solitudesoftware.co.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://crescent.solitudesoftware.co.uk' is therefore not allowed access.
(index):1 Access to Font at 'http://localhost:8081/crescent/wp-content/themes/Avada/includes/lib/assets/fonts/fontawesome/fontawesome-webfont.woff2?v=4.7.0' from origin 'http://crescent.solitudesoftware.co.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://crescent.solitudesoftware.co.uk' is therefore not allowed access.
(index):1 Access to Font at 'http://localhost:8081/crescent/wp-content/themes/Avada/includes/lib/assets/fonts/fontawesome/fontawesome-webfont.woff?v=4.7.0' from origin 'http://crescent.solitudesoftware.co.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://crescent.solitudesoftware.co.uk' is therefore not allowed access.
(index):1 Access to Font at 'http://localhost:8081/crescent/wp-content/themes/Avada/includes/lib/assets/fonts/fontawesome/fontawesome-webfont.ttf?v=4.7.0' from origin 'http://crescent.solitudesoftware.co.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://crescent.solitudesoftware.co.uk' is therefore not allowed access.
(index):1 Access to Font at 'http://localhost:8081/crescent/wp-content/plugins/fusion-builder/inc/lib/assets/fonts/fontawesome/fontawesome-webfont.woff2?v=4.7.0' from origin 'http://crescent.solitudesoftware.co.uk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://crescent.solitudesoftware.co.uk' is therefore not allowed access.
但是,我找不到这些内容的存储位置,无法将设置更改为新的url。我尝试了一个替换插件,但由于某种原因,它没有拾取这些内容。

根据本文:

您可以将以下内容添加到HTACCESS中:

# Apache config
<FilesMatch ".(eot|ttf|otf|woff)">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
#Apache配置
标题集访问控制允许原点“*”

对于迁移的站点,我也遇到了同样的问题,但无法确定数据库中保留旧URL的位置。HTACCESS修复不如实际解决坏记录那么理想;然而,它是有效的

我也有同样的问题,这是Avada theme创建的缓存

要修复此问题,请重置CSS和JS动态缓存:

Avada>主题选项>高级>动态CSS&JS>重置融合缓存


我最近将一个客户端站点切换到一个使用Avada主题的新域,所有的icomoon字体都消失了。我试着编辑。htaccess就像一些线程建议的那样…没有骰子!重置融合缓存的效果非常好。

现在可以在主题选项>性能下找到此选项