Envira Gallery Documentation
Documentation, Reference Materials and Tutorials for Envira Gallery
Documentation, Reference Materials and Tutorials for Envira Gallery
Would you like Envira Gallery and your website in general to perform at its very best? We’ll cover several important optimization topics in this tutorial to get the most out of your WordPress site. This tutorial will walk you through the steps needed to optimize your site for speed.
It all starts with picking a good host to begin with. We both use and recommend SiteGround.
Although, if you have a larger budget for your project or know that you’ll be needing to support hundreds or thousands of photos and have a high volume of traffic, something more scalable like WP Engine may be in order.
Whether you’re interested in one of the recommendations above or already have hosting, making sure that your server is already on or is capable of being upgraded to PHP 7+ is absolutely vital. Not just for Envira’s performance but for your WordPress install and overall website performance.
In some tests, PHP 7 is up to 50% faster than PHP 5.
Log into your WordPress site and navigate to Envira Gallery » Settings » System Info tab.
Here you can easily see the PHP version you’re hosting company currently has installed for you as well as some other important server information.
If you’re not already on PHP 7+ we recommend you contact your hosting company to request an upgrade for you PHP version.
As shown below, you’ll find some other helpful recommendations for your server configuration:
You can see what WordPress recommends for your server setup on their requirements page.
Over time, your WordPress install can become quite bloated. Follow these steps to make sure your install is running at optimum capacity:
wp-config.php
file: define( 'WP_POST_REVISIONS', 3 );
to limit the revision count to only the latest 3 revisions.Alternatively, instead of installing a plugin or service as mentioned above (which will handle most optimizations automatically), if that’s too difficult, impossible, or is causing too many conflicts, you can take a more surgical approach to address Expires Headers, Browser Caching, and GZIP Compression recommendations.
To do this, check out the GTMetrix article on how to Add Expires headers.
You can also remove query strings from JS and CSS files by using a free plugin called Remove Query Strings From Static Resources.
Envira Gallery itself, has a few options available to optimize for better page loading.
Enable Envira Lazy Loading for your gallery will also help. This loads images only once they’ve come into view above the page fold, rather than simply loading the entire image set at the beginning.
When editing a gallery, under the Configuration tab, check the box for Enable Lazy Loading?
Also under the Configuration tab, you can define a specific image size and Crop Images as shown in the image below.
Using Envira’s Pagination Addon will break up large galleries into multiple pages, rather than dumping them all onto one page. This can also makes it easier for people to browse the gallery.
If you need any help using the pagination, review our documentation on the Pagination addon.
You can also use Envira’s Albums Addon to create an album for a single or set of galleries. The Albums Addon would show 1 image for each gallery inside the album.
For assistance in creating an Envira album, check out our documentation for the Albums Addon.
It’s very important to optimize your images to get the smallest file size possible. With the right steps and tools, it’s also possible to do this without losing any noticeable quality.
You can use a plugin to optimize your images. We recommend one of the following:
And that’s it. Whether you only tried a few of these optimization techniques or all of them, you should have a noticeably zippier website.
Check out some of our other tutorials, such as How to Limit Number of Images Displayed.
A: We recommend GTmetrix. Pingdom and Google’s PageSpeed Insights are also pretty good tools.
A: You can install a plugin like WordPress PHP Info to check the specific server configuration you have installed.