Support Multisite?

Home Forums Use Any Fonts Support Multisite?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #7796
    Andhika Stya
    Guest

    Is this plugin support multisite?

    #7800
    Dinesh
    Keymaster

    Hi Andhika,

    Ya it can used in multi sites.

    Thanks

    #8692
    Andhika Stya
    Guest

    How to step by step to use the plugin to multisite?

    #8694
    Dinesh
    Keymaster

    Hi Andhika,

    Please follow these steps. Hope it helps. Actually it is same like installing any other plugins in multisite.

    1. Install plugin in network admin as usual for multisite.
    2. Active for whole network if you want to use it in all sub sites. If not Go to admin of individual site and enable plugin for that site alone.
    3. After that, please go the subsite admin and you will get the Use Any Font menu in left side. (Make sure the plugin is active. Reference : Step #2)

    Thanks

    #8698
    Blair Geddes
    Guest

    We are having issues with this plugin in multi-site. We get the below error for example:

    Access to Font at ‘https://www.maindomain.co.uk/subdomain/wp-content/uploads/sites/3/useanyfont/170515055830Bookos.woff’ from origin ‘https://www.subdomain.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://www.subdomain.com’ is therefore not allowed access.

    We have already tried adding below to header.php file in child theme of both main domain and sub domain:

    <?php /** @package WordPress @subpackage Default_Theme **/
    header(“Access-Control-Allow-Origin: *”);
    ?>

    But the error still remains. We have the plugin activated in the sub domain website only and it is not network activated. Might that be the issue?

    #8709
    Dinesh
    Keymaster

    Hi Blair,

    Can you please keep this in your main domain htaccess file ? This should fix the cross domain issue.

    <FilesMatch "\.(ttf|otf|eot|woff|css)$">
      <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
      </IfModule>
    </FilesMatch>

    Thanks

    #8710
    Blair Geddes
    Guest

    Hi Dinesh,

    Many thanks. Yes, I’ve had that block of code in my .htaccess file previously, and it does work for sites that don’t have a CDN applied. So when I apply that it fixes those sites without CDN. But sites with CDN now have the below error:

    Access to Font at ‘https://subdomain-maxcdn.netdna-ssl.com/wp-content/themes/bridge/css/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0&#8217; from origin ‘https://www.subdomain.com&#8217; has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://www.subdomain.com&#8217; is therefore not allowed access.

    In MaxCDN there is an option to allow cross-origin resource sharing. But then if that is enabled, and you have the above block in your .htaccess file, you get a new error saying essentially you can’t have both! Any ideas on the right combination for a solution with this setup? Maybe the solution is just putting all websites through CDN.

    #8712
    Dinesh
    Keymaster

    Hi Blair,

    Since i haven’t used MaxCDN much, i have no much idea about it. Any chance you can ask with the MaxCDN support team ? May be they can offer some solutions.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Support Multisite?’ is closed to new replies.