2017-11-18 8 views
0

私がavadaテーマを転送したとき、ロカホストの設定といくつかのエラーがあります。サイトをローカルに構築してから転送します。これらは私が交換するプラグインが、そのアイテムを拾っていないいくつかの理由を試してみましたが、新しいURLに設定を変更することが格納されている場所を、私は見つけることができませんしかしAvadaのマイグレーションURLが置き換えられない

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. 

この記事毎の

答えて

0

:あなたはあなたのhtaccessファイルに追加することができますhttps://theme-fusion.com/knowledgebase/are-your-font-awesome-icons-or-custom-fonts-not-showing-up/

# Apache config 
<FilesMatch ".(eot|ttf|otf|woff)"> 
Header set Access-Control-Allow-Origin "*" 
</FilesMatch> 

私は、移行のサイトの同じ問題を持っていましたが、古いDB内の位置を決定することができませんでしたURLは維持されました。 HTACCESSの修正は、実際には悪いレコードを解決するのと同じくらい望ましいものではありません。しかし、それは動作します!

関連する問題