Changing image URLs in media library

On a default wordpress install, the media library is located at: /wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server. This filter add_filter(‘admin_post_thumbnail_html’, ‘my-function’, 1000, 5); will update the featured image URLs in the admin, but not the images in the media library list table. Is … Read more

CDN + WP Admin Query – .htaccess redirection

Say I have a website at https://www.example.com and I am using a CDN. Now if I want the CDN URL to be https://www.example.com/assets/… and not https://assets.example.com, then what should I do? Is it a good idea to create a redirection where the wp-admin will always get files from example.com and not www.example.com? www.example.com is pointed … Read more

How to exclude a specific template from being cached by a CDN [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question I’m using a … Read more

Purpose of installing Twitter Bootstrap through npm?

Question 1: What exactly is the purpose of installing Twitter Bootstrap through npm? I thought npm was meant for server side modules. Is it faster to serve the bootstrap files yourself than using a CDN? Question 2: If I were to npm install Bootstrap, how would I point to the bootstrap.js and bootstrap.css files? 4 … Read more

Speed up WordPress

I don’t have the feeling that my blog is particularly slow, but that’s because I haven’t really started out yet. I’m very worried that it will get slow soon, especially because I will have blog posts with (optimized/compressed) 40-50 photos. This can’t be changed, but other things can. I already read a lot about it, … Read more

Varnish + W3 Total Page Cache [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I currently have varnish setup on my server. I’m also using the W3 Total Cache plugin to speed up the site … Read more

Add Font Awesome Embed CDN Script To WordPress

This is my original code that pulled Font Awesome icons, which is placed in my functions.php file: wp_enqueue_style( ‘prefix-font-awesome’, ‘//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.1/css/font-awesome.min.css’, array(), ‘4.6.1’ ); They’ve recently started offering unique embed codes that appear like so: <script src=”https://use.fontawesome.com/##########.js”></script> But I’m not sure how to use this with wp_enqueue_style. 1 Answer 1 The full snippet would be this: … Read more

Deregister WordPress jquery on specific page

Note: Removing jQuery that comes with WordPress is not recommended. Use caution if implementing the solution below I have a few pages that will not require jQuery to be loaded in the header. I’m wondering if it’s possible to dequeue/deregister WordPress jQuery and enqueue/register jQuery cdn on specific pages? I’ve read through the do’s and … Read more

Best image hosting service

My girlfriend has a very popular blog, but we are growing beyond current bandwidth limit (1TB). Adsense doesn’t pay enough for an expensive CDN. What recommendations can you make about image hosting. Preferably a plugin, or something that can easily be implemented. 4 Answers 4 Its not recommended often enough, but Flickr is an excellent … Read more