Support » Plugin: Use Any Font | Custom Font Uploader » Works well, but isn't perfect (like everything)

  • This plugin works just fine after making a small one-time donation to the developer.

    However, I have a knit-pick; A site launched recently using this plugin, and we had to change the client’s existing domain name to point to this new website. The fonts that were specified in /wp-content/uploads/useanyfont/uaf.css were tied to the old domain. Needless to say, when the new domain resolved, the fonts didn’t load on the new domain.

    A quick, simple, multi-domain solution would be to remove the domain name from url() and start it with url("/wp-content/..."). Also, the url within url() should be quoted.

    Thanks for your time and the otherwise great plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dnesscarkey


    Hi ITS Alaska,

    After you move your site, you need to deactivate and activate the plugin again. This way it will write the css font file again based on your new server location. We don’t make this automatic as writing and checking each time for the server location change will make the site loading process slow.

    Also, we couldn’t directly use url(“/wp-content/…”) as some wordpress users change their upload directory to different location.

    However, i will try to keep this plugin better with your suggestions.


    Thread Starter ITS Alaska


    That’s good to know, but if you have multiple domains pointing to the same website, the fonts will still only load on the primary one. It’s not a problem once the user starts browsing since they will be taken to the new domain when they click anything, but a problem when they first get to the website on that alternate domain; the fonts would be dead because they’re 2 separate domains.

    And I didn’t mean to hard-code /wp-content in your plugin; I was just using that as an example. The actual code to pull the upload directory would probably look something like this:

    $upload_dir_array = wp_upload_dir();
    $upload_dir = str_replace(ABSPATH,'',$upload_dir_array['basedir']);

    You may need to play with it a little to get / or \ in the right places, but that’s the general idea.

    Thanks for taking the idea seriously.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Works well, but isn't perfect (like everything)’ is closed to new replies.