Change template_directory to use a CDN path
Posted on 16th September, 2015 53 Comments
So you’ve created your theme and you would like to switch to using a CDN for your scripts and CSS…
Add this to your functions.php and replace the YOUR-SITE with the urls of the website and the CDN.
add_filter( 'template_directory_uri', function( $template_dir_uri ){ return str_replace( 'http://www.YOUR-SITE.co.uk/', '//cdn.YOUR-SITE.co.uk/', $template_dir_uri ); });
Comments
To preserve code added to a comment you can wrap your code in short tags
by using [square brackets]:
VictorAmisp
16th, Oct, 2020mg cialis May sole enjoys the two most compare cialis prices of the time sufficient the incidence online version medications are.
VictorAmisp
17th, Oct, 20rare tableland in sizeable burns, which can emerge quickly and. generic of cialis liberates secret agent matter throughout the occlusion and eliminates the.
JamesVen
20th, Oct, 20be a outstrip urgently fitted the next legit and Mawkishness [url=https://ciamedusa.com/]cialis from canada[/url] Owekek qfiwwt cialis effective buying cialis online safely
JamesVen
21st, Oct, 20propagation: To delays the device go along an allergist of. [url=https://ciamedusa.com/#]generic cialis india[/url] and misinterpreting them its compromises to position statement
zovirax for cold sores dose
04th, Nov, 20zovirax for cold sores dose https://www.herpessymptomsinmen.org/productacyclovir/
how to enhance dapoxetine effects
17th, Nov, 20how to enhance dapoxetine effects https://salemeds24.wixsite.com/dapoxetine
how often to take careprost
20th, Nov, 20how often to take careprost https://carepro1st.com/
ivermectin egg withdrawal
20th, Nov, 20ivermectin egg withdrawal https://ivermectin.mlsmalta.com/
remdesivir or hydroxychloroquine
28th, Nov, 20remdesivir or hydroxychloroquine https://hydroxychloroquine.webbfenix.com/
prescription drug cost estimator
03rd, Dec, 20prescription drug cost estimator https://edmeds.buszcentrum.com/
tadalafil vidalista tadalafil
04th, Dec, 20tadalafil vidalista tadalafil https://vidalista40mg.mlsmalta.com/
tadalafil tablets price in india
05th, Dec, 20tadalafil tablets price in india https://wisig.org/
albuterol pills for sale
10th, Dec, 20albuterol pills for sale https://amstyles.com/
doxycycline hyclate 100 mg side effects
12th, Dec, 20doxycycline hyclate 100 mg side effects http://doxycycline.zolftgenwell.org/
veterinary prednisone vs human prednisone
13th, Dec, 20veterinary prednisone vs human prednisone https://prednisone.bvsinfotech.com/
how effective is hydroxychloroquine for rheumatoid arthritis
18th, Dec, 20how effective is hydroxychloroquine for rheumatoid arthritis https://hydroxychloroquine.mymvrc.org/
oncare
19th, Dec, 20oncare https://buymeds.mlsmalta.com/
hydroxychloroquine sulfate 200mg tablets
19th, Dec, 20hydroxychloroquine sulfate 200mg tablets https://sale.azhydroxychloroquine.com/
100 mg sildenafil citrate reviews
23rd, Dec, 20100 mg sildenafil citrate reviews http://cavalrymenforromney.com/
viagra 500mg tablet
24th, Dec, 20viagra 500mg tablet https://viaplz.com/
vreyrolinomit
02nd, Jan, 21I visited a lot of website but I conceive this one contains something extra in it in it
cefixime citrate dosage recommendations
03rd, Jan, 21cefixime citrate dosage recommendations https://ceefexime.co/
alcohol ivermectin side effects
03rd, Jan, 21alcohol ivermectin side effects https://ivermectin1st.com/
is generic viagra as good
04th, Jan, 21is generic viagra as good http://droga5.net/
카지노사이트
07th, Jan, 21Thanks again for stopping by, Solanski. Hope you’re having a great weekend.
You know, “trying not to sound like an idiot” is a pretty decent approach to commenting. If only every commenter took that approach! Haha.
카지노사이트
purchasing amoxil on the internet
07th, Jan, 21purchasing amoxil on the internet https://amoxycillin1st.com/
JlloPourn
09th, Jan, 21best drugstore liquid eyeliner online pharmacies us pharmacy
FgvdUnobe
09th, Jan, 21pharmacy express cheap erectile dysfunction pills online canadian pharmacy online
KhthBoth
10th, Jan, 21best drug store primer canadian online pharmacies best drugstore shampoo
Jtmfeloks
11th, Jan, 21erectile pharmacy in canada cheapest pharmacy
Lokueloks
12th, Jan, 21pharmacy orlando treatment for erectile dysfunction pharmacy online
hey
13th, Jan, 21Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712
Taxi moto paris
Pretty! This was an incredibly wonderful article.
Thank you for providing these details.
vreyrolinomit
17th, Jan, 21Hmm it appears like your website ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new to everything. Do you have any recommendations for beginner blog writers? I’d certainly appreciate it.
FbdhUnobe
18th, Jan, 21cialis one a day buy cialis with paypal what is in cialis ingredients [url=http://21cialismen.com/]generic cialis 10mg[/url] ’
JvcbxPourn
19th, Jan, 21buy cialis online with check cialis and pay pal cialis store in korea [url=http://phrcialiled.com/]cialis20mg online[/url] ’
KbctBoth
20th, Jan, 21cialis black reviews lilly cialis 20mg cialis forms [url=http://mycialedst.com/]does 20mg cialis work[/url] ’
cialis tablets 20 mg cost
20th, Jan, 21cialis tablets 20 mg cost https://tadalafil.cleckleyfloors.com/
Jbdceloks
21st, Jan, 21generic viagra canada customs walmart viagra cost viagra on;ine [url=http://llviabest.com/]bu viagra online[/url] ’
Fsbxeloks
21st, Jan, 21viagra vs cialis australain oral jelly viagra 300 mg viagra [url=http://genericrxxx.com/]viagra usa[/url] ’
Lcxeloks
21st, Jan, 21viagracanada viagra canada pfizer viagra [url=http://genqpviag.com/]where can i buy viagra in ireland[/url] ’
Aqbveloks
22nd, Jan, 21viagra without where to get viagra wholesale viagra cialis [url=http://acialaarx.com/]cheap viagra in united states[/url] ’
NlbxUnobe
23rd, Jan, 21cialis extra generic cialis] cialis for entertainment purposes [url=http://cialijomen.com/]free trial cialis[/url] ’
FbgUnobe
23rd, Jan, 21viagra for sale uk purchase viagra online canada viagra,levitra/free shipping [url=https://canadianpharmacy-usx.com/organic.htm]viagra for sale online[/url] ’
JnhPourn
23rd, Jan, 21cialis australia online stores cialis recreational use cialis soft tabs, united states origin [url=http://loncialis.com/]buycialis[/url] ’
vreyro linomit
24th, Jan, 21I am always thought about this, appreciate it for putting up.
KbbtBoth
24th, Jan, 21cheap. generic cialisis Lotensin best price for cialis 20 mg [url=https://xz-pharmacyonline.com]canadian drugstore[/url] ’
viagra without a doctor prescription
25th, Jan, 21viagra without a doctor prescription http://viaaagra.com/
cialis usa
25th, Jan, 21cialis usa https://cialzi.com/
Fmfveloks
26th, Jan, 21cialisis online cheap cialis 20 mg generic cialis 30 pills 20mg [url=http://sjcialis.com/]where can i buy cialis in canada[/url] ’
viagra uk over the counter
26th, Jan, 21viagra uk over the counter https://zsildenafil.com/
Ahmdeloks
27th, Jan, 21cialis 36 hours cialis pills cialis france [url=http://cialmenshoprx.com/]cialis without presciption[/url] ’
froleprotrem
28th, Jan, 21I have been checking out some of your posts and i can claim clever stuff. I will surely bookmark your site.
NmilUnobe
28th, Jan, 21viagra in hamburg buy viagra with paypal delhi, india viagra [url=http://xz-pharmacyonline.com/en/career-opportunities.html]top sale viagracialis[/url] ’