Search results for helper plugin

296 articles found

  • Prevent Critical CSS generation for custom post types and taxonomies

    When using Load CSS Asynchronously, you may see errors when trying to generate CSS for custom post types (CPT) and taxonomies that are not publicly accessible. In this case you can exclude them from

  • Enable caching for the WP REST API

    REST API requests are not cached by default, but you can enable it with the following helper plugin. 📥 Download (.zip): WP Rocket | Cache WP Rest API Developers: You can find the code for this

  • Enable cache for RSS feed

    WP Rocket doesn't cache RSS feed by default. However, if you need to, you can enable RSS caching with the following helper plugin: 📥 Download (.zip): WP Rocket | Cache RSS feed Developers: You can

  • Exclude uploaded Elementor CSS from Load CSS Asynchronously

    In some cases the option Load CSS Asynchronously may conflict with files created dynamically by Elementor in the uploads/elementor/css folder. If that problem arises specific files can be excluded

  • Customize Remove Unused CSS parameters

    This article shows how you can customize the parameters that control the speed of the Used CSS generation related to the Remove Unused CSS feature. The Remove Unused CSS parameters are two: The batch

  • Adding custom rules to the htaccess file

    When you change or save WP Rocket's settings, the htaccess file is regenerated. WP Rocket always places its rules at the very top of the file, so if you had any custom rules there, they will get

  • Remove X-Powered-By: WP Rocket header

    If you'd like to remove the x-powered-by: WP Rocket header from your website, you can install the helper plugin below. 📥 Download (.zip): WP Rocket | Remove X-Powered-By: WP Rocket from headers

  • Choose YouTube preview image resolution

    If you are using the LazyLoad sub-option Replace YouTube iframe with preview image, you can specify the resolution of the preview thumbnail using the helper plugin available in this article. Heads

  • Remove expires (mod_expires) rules from .htaccess file

    On some occasions, you may want to disable the expires rules WP Rocket is adding in the .htaccess file. You can prevent WP Rocket from adding those rules by installing the following helper plugin. 📥

  • Disable use of the htaccess file by WP Rocket

    In some server environments you may not have permissions to modify the htaccess file. To prevent unnecessary warnings, or for any other compatibility reason, you can prevent WP Rocket from trying to

  • Multiple configuration files for WP Rocket

    WP Rocket writes an important PHP configuration file inside /wp-content/wp-rocket-config/ The filename is created following the same domain you are using on your WordPress

  • Disable Load CSS Asynchronously on mobile

    If the Load CSS Asynchronously feature is causing layout issues on the mobile version of your site, you can disable this feature for mobile devices only while keeping it for the desktop version.

  • Disable page caching

    In rare cases you may want to completely disable WP Rocket’s automatic page caching feature, but keep using other features such as Remove Unused CSS, Delay JavaScript execution, LazyLoad, CDN and

  • Disable Emoji optimization

    The Disable emoji feature disables the emoji functionality to reduce the extra HTTP request linked to the emojis script, wp-includes/js/wp-emoji-release.min.js, that was introduced in WordPress 4.2.

  • Disable page caching on all pages except for the selected URLs

    This helper plugin will disable WP Rocket’s page cache while preserving other optimization features on all pages except for the selected URLs. 📝 Manual code edit required before use! 📥 Download

  • Logged-out cache displayed to logged-in users

    If you have a site where users log in to view content, there can be cases where the logged-out page is shown to logged-in users, or vice versa. Please check the following: Are you using an additional

  • Fixing non-www redirection

    Not having the correct redirects in place for the various versions of your domain can cause problems. There are a few ways to set up these redirects. ⚠️ After implementing any of the following

  • Redirect HTTP to HTTPS

    If you have SSL enabled for your entire site, you will need to make sure that all links pointing to the HTTP version of your site will be automatically redirected to the HTTPS version. You may use

  • Remove custom post URLs from purge

    This helper plugin will remove a custom set of URLs from WP Rocket’s automatic cache purging when a post is created / updated / deleted. It can help in cases where you are seeing these URLs show up

  • WooCommerce mini cart is cached and already has a product in it

    Problem When a visitor goes to your site for the first time, the mini-cart seems to be cached and already has an item (or items) in it. Visiting the Cart page itself shows there are no items in the

  • Force WebP replacement on more attributes

    WP Rocket's WebP Compatibility looks for images in specific attributes to replace them with the WebP version. If you have an image found in an unsupported attribute, you can force the WebP

  • Exclude a specific number of images from lazy loading by targeting an attribute

    Google PageSpeed recommends that anything resting above the fold shouldn't be lazyloaded. This can be done using our images and iframe exclusions box by targeting specific image names and classes. A

  • Customize Preload Parameters

    This article contains the information about the parameters that control the speed of the Preload feature, and how you can modify them. The Preload option has three parameters: Batch size, which is

  • Programmatically toggle WP Rocket options under specific conditions

    If you need to programmatically deactivate or activate one of WP Rocket's options, you can use our pre_get_rocket_option_{option_name} filters. This can be particularly useful in some cases. Imagine

  • Adjust LazyLoad threshold

    By default, the LazyLoad and LazyLoad for CSS background images features load images that are within 300px of the viewport (browser window). However you can adjust this threshold with the following.

  • Extend add missing image dimensions feature

    By default, the Add missing image dimensions feature will not be applied on: Externally hosted images, i.e. not hosted on your own domain Images within <picture> tags It's possible to force the

  • Force page caching

    Most caching plugins for WordPress use a de facto standard to exclude pages from being cached: the DONOTCACHEPAGE WordPress Core constant. If defined as true during a request, WP Rocket would not

  • RSS feed doesn't update

    If your RSS feed is not updating immediately when you publish new podcasts or content, there are 2 features that may affect this: Page caching Browser caching Page caching WP Rocket automatically

  • Prevent static file creation for dynamic CSS/JavaScript

    WP Rocket has an automatically applied performance enhancement: CSS and JavaScript files loaded dynamically via PHP are automatically saved to static files to improve loading time. If this behavior

  • Conditionally Disable Remove Unused CSS

    Sometimes you need to disable the Remove Unused CSS feature for groups of pages, based on their URLs slugs. For example, if you want to disable the optimization on all product pages which are using

  • Exclude all CSS files in a folder / directory from Load CSS Asynchronously

    In rare cases the option Load CSS Asynchronously may conflict with a set of files, specially when they are being dynamically generated by one of your plugins or your theme. If this option causes any

  • Disable Remove Unused CSS for specific pages or posts

    In some cases, you may need to disable the Remove Unused CSS feature on a specific page or group of pages. You have 2 options to achieve it: Using the WP Rocket Options meta box This is the simplest

  • Prevent CSS files from being removed by Remove Unused CSS

    By default, Remove Unused CSS will remove every CSS file from the HTML after the optimization is applied. In some cases, you might need to preserve CSS files. You can exclude CSS files being removed

  • Disable page caching for specific pages and posts

    In some cases you may need to disable the page caching feature on a specific page or group of pages and/or posts but you'd like to keep using the benefits of the optimization features such as

  • Prevent inline styles from being removed by Remove Unused CSS

    By default, Remove Unused CSS will remove every stylesheet and inline styles after the optimization is applied. In some cases, you might want to preserve inline styles. You can exclude inline styles

  • Disable automatic cache clearing

    Automatic cache management is one of WP Rocket’s most elaborate features. We put a lot of thought into which actions performed on a WordPress site should make the plugin clear the entire site cache,

  • Resolve 500 Internal Server Error

    It's possible that WP Rocket causes a 500 error on a site. In this article, you will find which steps to follow in this situation, some additional information, and the available fixes. Debugging

  • List of pre_get_rocket_option_{option_name} filters

    If you need to programmatically deactivate or activate one of WP Rocket's options, you can use WP Rocket's pre_get_rocket_option_{option_name} filters. This can be particularly useful in some cases

  • Redirection to enforce/remove trailing slash on URLs

    WP Rocket will respect the trailing slash configuration you have for your site. However, this feature won't work in the following cases: WP Rocket rewrite rules are present in the .htaccess file.

  • NGINX configuration for WP Rocket

    WP Rocket will work out of the box on NGINX servers. While this configuration is not required, it provides the rules that would otherwise be present in the .htaccess file on Apache/LiteSpeed servers.

  • Chrome native lazyload

    Chrome 76 introduced native lazy-load. This means that lazy-loading can be done by the browser itself instead of a plugin. At the moment, Chrome's implementation of native lazy-load is very

  • Disable missing image dimensions on specific images

    If the Add missing image dimensions feature causes a problem with any specific images, it's possible to exclude them with the following helper plugin. 📥 Download (.zip): WP Rocket | No Automatic

  • Optimize Google Fonts

    This feature detects the Google Fonts found on your website, optimizes the requests and makes the text appear faster. In this article, you'll find more about this feature, how to deactivate it, how

  • Font icons don’t show in IE 11

    If your icon fonts (e.g. FontAwesome) don’t display in Internet Explorer, you can probably fix this by installing this little helper plugin: 📥 Download (.zip): WP Rocket | Remove ETag Developers:

  • Customize query string caching

    Query strings are not cached by default but we do make some automatic exceptions which are detailed here: It's possible to further

  • Create different cache files with dynamic and mandatory cookies

    Some plugins may be using cookies to set dynamic information about a user and differentiate content accordingly. For example, a third party plugin may set a cookie to detect and store your country,

  • Caching the search page results

    By default WP Rocket does not cache results of WordPress’ search functionality. In order to enable caching for search results, install the following helper plugin: 📥 Download (.zip): WP Rocket |

  • Exclude scripts from Delay JavaScript Execution only at some URLs

    This helper will allow you to exclude JavaScript files from Delay JavaScript Execution option only on specific pages instead of excluding them globally. This can be useful in some cases where you can

  • Serve pre-compressed CSS/JS files

    When file optimizations are applied, such as Minify CSS and JavaScript, WP Rocket creates 2 versions of each file: a standard CSS/JavaScript file, with the .css or .js extension a pre-compressed GZIP

  • Disable LazyLoad on mobile

    Sometimes LazyLoad might work fine on desktop computers, but cause an issue on mobile devices. In that case, you don’t have to deactivate LazyLoad altogether. You can install the following helper