Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1137201
    arketyx
    Participant

    Hi,

    I installed a WordPress site with Theme X on one domain.
    One month after, i changed the domain throught WordPress admin, and then i revoke the theme x licence, changed the domain in Theme X Community admin panel to link the purchase code to the new domain.

    In the end, i linked the activation code to my wordpress and the the x worked again.

    But i had one problem : an error about Access Control Origin : theme x was trying to load font from the previous domain.

    I never understood why, but i resolved the first time thanks to your documentation by adding one line in htaccess to allow loading outside.

    Now the problem is back and all solutions tried never worked.
    What is more, the theme try to load font file from a place where there’s nothing : (mysite.com/wp-content/themes/x/fonts/OPTMIA.woff)

    Could you help me please ? I’m desperate ๐Ÿ™

    #1137313
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Could you please try following this resource (https://www.maxcdn.com/one/tutorial/how-to-use-cdn-with-webfonts/).

    Let us know how it goes.
    Thanks!

    #1138207
    arketyx
    Participant

    Hi Darshana !
    Thanks for the answer.

    I paste the code in both root htaccess of public_html folder, and htaccess from the wordpress directory.
    The error stay the same ๐Ÿ™

    In the console, i have “Network error” with “unknown source”.

    Do you want an acces to my WordPress to see more details ?

    #1138363
    Darshana
    Moderator

    Hi there,

    Once youโ€™ve done that, you should have a .htaccess that looks similar to this.

    Hope that helps.

    #1153507
    arketyx
    Participant

    Hi !
    Nope i always have the same problem … even if there are these lines in my htaccess ๐Ÿ™

    #1153606
    Thai
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    โ€“ Link to your site
    โ€“ WordPress Admin username / password
    โ€“ FTP credentials

    Donโ€™t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1155106
    arketyx
    Participant
    This reply has been marked as private.
    #1155275
    Lely
    Moderator

    Hi There,

    Thank you for the credentials.
    Upon checking, the issue is not Access Control Origin error but missing font file.
    I can see that you have the following font declaration:

    @font-face {
    	font-family: 'Conv_OPTIMA';
    	src: url('https://soins-domicile-palavas.fr/infirmiere-palavas/wp-content/themes/x/fonts/OPTIMA.eot');
    	src: local('โ˜บ'), url('https://soins-domicile-palavas.fr/infirmiere-palavas/wp-content/themes/x/fonts/OPTIMA.woff') format('woff'), url('https://soins-domicile-palavas.fr/infirmiere-palavas/wp-content/themes/x/fonts/OPTIMA.ttf') format('truetype'), url('https://soins-domicile-palavas.fr/infirmiere-palavas/wp-content/themes/x/fonts/OPTIMA.svg') format('svg');
    	font-weight: normal;
    	font-style: normal;
    }

    You current site is https://infirmieres-domicile-palavas.fr/ and that font declaration is pointing to another domain or might be your previous domain. to fixed that issue, please try to install a child theme. Then inside x-child folder, create fonts folder. Upload font files inside that folder and update above CSS to this:

    @font-face {
    	font-family: 'Conv_OPTIMA';
    	src: url('https://infirmieres-domicile-palavas.fr/wp-content/themes/x-child/fonts/OPTIMA.eot');
    	src: local('โ˜บ'), url('https://infirmieres-domicile-palavas.fr/wp-content/themes/x-child/fonts/OPTIMA.woff') format('woff'), url('https://infirmieres-domicile-palavas.fr/wp-content/themes/x-child/fonts/OPTIMA.ttf') format('truetype'), url('https://infirmieres-domicile-palavas.fr/wp-content/themes/x-child/fonts/OPTIMA.svg') format('svg');
    	font-weight: normal;
    	font-style: normal;
    }

    Hope this helps.

    #1155662
    arketyx
    Participant

    Hi,

    The font-face was a trick to try to get the font from the previous domain.
    I installed the child theme and then removed these lines.

    All works fine, thanks so much !

    #1155863
    Rad
    Moderator

    You’re welcome!

  • <script> jQuery(function($){ $("#no-reply-1137201 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>