I notice when visiting my blog https://www.datanumen.com/blogs/ via iPhone. Sometimes the first click to the blog title, such as "11 methods to fix...", will not open the blog article. I need to click for the 2nd time, to be able to bring out the blog article. I have used Lamdatest real devices to make the tests, and below are the results: In Canada, Australia. The click will always bring out the article body. In US. The problem will occur, but …
I followed many tutorial about leveraging browser caching nevertheless I couldn't configure it succesfully, in fact GTmetric (PageSpeed and YSlow) notified me many static file that don't have a cache expire header. That's my GTmetrix result (pagespeed): I tried to find the problem looking at compatibility test on W3TC and it notified me many Apache modules missed which are required for browser caching: I followed some tutorial to enable these modules but it seems they are alread enabled, in fact …
Upon enabling the Smush plugin to compress images, my sites logo and a few other images are not loading. I have tried resizing the images or disabling Bulk Smushing and Lazy Load to no avail. Here is my site where you can see the error on the first page. I do not develop in WordPress, any help appreciated.
I came across a problem with WP_Mail for sending form submissions with file attachments. Our site uses a CDN, so everything uploaded to the site, whether images and media by site builders or documents by users gets put on an external server. This poses a problem for WP_Mail because it uses the PHPMailer addAttachment method to attach files, which expects local files. I was able to fix this by changing the line in wp_mail to use addStringAttachment, but of course …
I have W3 Total Cache installed so that I can serve images from my live website to a local development version. Everything seems to be working as expected, apart from the URL rewrite doesn't seem to happen on a custom post types pages. I don't have the caching switched on, and the CDN hostname replacement is working very well on every other page. Any ideas?
Is there a way, with PHP, to prepend my CDN service's URL to all of my images only when using a mobile device? The reason I ask to do it with PHP is because my site is AMP compatible, which doesn't allow me to use JS to do it.
The link https://vreqenz-stream.de/shop/ throws warning when opened on some devices and not on others. I thought it may be a cahce issue but I have cleared cache from WP-rocket and also browser. Just for the info I am using Plesk web admin tool. Below is my WP_Config settings ini_set('log_errors','On'); ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
I think the CDN is causing my child theme to be delayed. Can someone tell me what I am doing wrong here? <?php add_action('wp_enqueue_scripts', static function () { $deps = []; if (class_exists(\Elementor\Plugin::class)) { $deps[] = 'elementor-frontend'; } wp_enqueue_style('vehica', get_template_directory_uri() . '/style.css', $deps, VEHICA_VERSION); wp_enqueue_style('vehica-child', get_stylesheet_directory_uri() . '/style.css', ['vehica']); }); add_action('after_setup_theme', static function () { load_child_theme_textdomain('vehica', get_stylesheet_directory() . '/languages'); });
I am studying the best practices for the cache for a Wordpress site. THe Wordpress site is: Not updated frequently(maybe once in a week). The update is only initiated and controlled from me, it does not contain updates from external sources, such as comments. In such a case, I just wonder what is the best practices for the cache, including: The cache plugin(Currently I am using WP Rocket). The cache in the CDN. Currently my plan is to: Set all …
Running NGINX, Wordpress 4.75 after upgrading from a way older version of Wordpress, our images are being served locally and I would like to change that to our CDN. In the past images that were uploaded to the blog were uploaded directly to our CDN using a plugin ( I think Offload S3 Lite ). My goal is that I want post images, thumbnail etc URL to be served from our CDN and not local. For example I have: https://test.com/blog/wp-content/uploads/2016/07/Wedding1-370x215.jpg …
I've set up a WordPress site with one local font. It is stored in the a fonts folder in the child theme. It is loaded with the following in the child theme style.css @font-face { font-family: 'Last Paradise'; src: url('fonts/LastParadise.eot'); src: url('fonts/LastParadise.eot?#iefix') format('embedded-opentype'), url('fonts/LastParadise.woff2') format('woff2'), url('fonts/LastParadise.woff') format('woff'), url('fonts/LastParadise.ttf') format('truetype'), url('fonts/LastParadise.svg#LastParadise') format('svg'); font-weight: normal; font-style: normal; } The site has a CDN, which is currently activated by the bunny.net CDN plug-in. Although I've tried various other options, such as the CDN …
I added the following code to the functions.php file add_filter( 'avatar_defaults', 'new_gravatar' ); function new_gravatar ($avatar_defaults) { $myavatar = 'link'; $avatar_defaults[$myavatar] = "name"; return $avatar_defaults; I'm taking the profile picture from my own server. But there is a problem! "I1.wp.com" appears at the beginning of the url in the profile image. What is the reason? So it looks like: "https://i1.wp.com/mysite.com/images/myavatar.png" I've disabled all plugins. But the result was not successful. I'm dealing with it in days. How do we delete …
I want to serve wp-content from my digitalocean Spaces CDN. I want to do this without a plugin. In the wp-admin/options.php the only URL I can change is upload_url_path.
I have three issues that require a solution please. Is there a way to show product gallery images externally using a cdn but instead of pointing to that exact image url only point to the folder that has that product images which then results in showing all the images in that folder as the product gallery images. The main reason why I would like to do this is I have 5000 products and over 20,000 variations. Now our supplier has …
When I run "themes check" , it recommends not to use CDN. I am using Bootstrap CDN this way function underscore_bootstrap_wp_scripts() { /* bootstrap and font awesome and animate css */ wp_enqueue_style( 'bootstrap_cdn', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' ); wp_enqueue_style( 'fontawesome_cdn', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css' ); /* default underscores styles */ wp_enqueue_style( 'underscore_bootstrap_wp-style', get_stylesheet_uri() ); /* bootstrap js */ wp_enqueue_script('bootstrap_js_cdn', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js',array('jquery'),'',true); /* default underscores js */ //wp_enqueue_script( 'underscore_bootstrap_wp-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true ); wp_enqueue_script( 'underscore_bootstrap_wp-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true ); /* my stylesheet …
To increase site loading time and decrease the pressure on my website I have decided to host files(js,css,images) in other hosting, like google storage or amazon aws, problem is that I already published a lot of posts that includes images other files in the html, like: <img src="site.example/wp-content/uploads/images/image.png"> i can't go all over the posts to change the src attribute, so I want to change my route code so every time a wp-content or wp-includes files is requested, it will …
I am using Siteground hosting and Cloudfare free CDN. On cloudfare website I get this - and on Siteground I get this - I have updated the CNAME records as asked, several times. Please guide me: Is CDN active? Is it correctly done? How to remove the error and do it correctly?
I want to run my entire WordPress site through a CDN to improve performance (HTML, not just static CSS/JS/media). Lets say the origin server is example.com and www.example.com is the URL where traffic will go through the CDN set-up as an origin-pull. The problem is an infinite loop will be created when visiting www.example.com which passes the request to WordPress which will look at the request and say "Actually this should be www.example.com according to the home_url and site_url defined …
My Situation I'm developing a book-store WordPress website where you can purchase and download books in PDF format. I don't want to use the local space for file storage (the host provider offers cheaper solutions for "download servers"). What I want to achieve Every time my client tries to upload a new book to the website through media library upload feature, WordPress can detect that it's a PDF file and automatically upload it to the Download Server and save that …
On my remote site I have Jetpack's site accelerator (formerly Photon) turned on. So all the images are cached and then served from the Wordpress CDN. When I ported the site to my local machine, including all the options, some setting in options caused the cdn url to be appended to all the srcset tags. The srcset values are of the form https://i2.wp.com/mh.local/wp-content/uploads/2019/09/Singapore-0595-HDR.jpg This does not work of course since its Jetpack is not connected in local. How can I …