• According to the documentation content_url should return a URL to the content area for the current site. However it uses WP_CONTENT_URL which points to the top level domain, not the subdomain. This causes some font-related issues on my site.

    Is this a bug or am I reading the documentation wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • As far as I’m aware, in a multisie it makes no difference whether you load something from e.g. site.tld/wp-content/ or from sub.site.tld/wp-content/. So if your font is in site.tld/wp-content/fonts/font.ttf, you should be able to retrieve the path with

    <?php content_url( '/fonts/font.ttf' ); ?>

    Could you explain what you are trying to achieve and what issue occurs?

    Thread Starter f1code

    (@f1code)

    We use a font provided by Typekit, but it is refusing to serve the font because the request does not come from the right domain.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘content_url on multisite uses top level domain’ is closed to new replies.