GetSimple Support Forum

Full Version: get_theme_url and CDN
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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/...
Just put http://cdn.mydomain.com/theme/... instead of <?php get_theme_url(); ?> in your template file.