Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_theme_url and CDN
#1
Hi there, I have this little problem. I'm sure there's an easy solution but I can't find it here. I'm probably searching for the wrong thing.

I want to use my CDN for some theme components, however I cannot use <?php get_theme_url(); ?> since my CDN is on a subdomain.

For example, my site is hosted on http://mydomain.com, and my CDN is http://cdn.mydomain.com. I want to use a <?php get_theme_url(); ?>, but instead of outputting http://mydomain.com/theme/..., I want it to output http://cdn.mydomain.com/theme/...

Is this possible at all? I tried cdn.<?php get_theme_url(); ?>, but that obviously outputs cdn.http://mydomain.com/theme/...
Reply
#2
Just put http://cdn.mydomain.com/theme/... instead of <?php get_theme_url(); ?> in your template file.
Reply




Users browsing this thread: 1 Guest(s)