A favicon, short for favorites icon, is an icon displayed in the tab bar of a browser accessing the site and next to the site name in a list of saved bookmarks. You can see a large version of the Avada favicon here. In Avada, you can add a range of favicons to give your site a professional look on all devices, and when your site is saved as a bookmark. Read on, and watch the video below for a visual overview.
Creating favicons are best made when creating your logo, using elements and colors from your branding. A favicon needs to have a square aspect ratio, and should be simple enough to display well at a very small size. Typically a favicon is a small version of your logo, with no logotype or other text, but can also just be a letter, or other graphic image.
There are favicon generators online, but these are basic scripts and cannot take any logo and make a great favicon. The best results with such tools are usually Text to Favicon options, where the favicon becomes just one letter.
An alternative to this is to create your own favicon in Photoshop or the like. If using this method, create a square document (I like to use a big size like 1000px) and then resize the favicon to the correct sizes when done designing. See this guide for more information on how to make a great favicon.
Once your have your favicons, it’s time to upload them. Favicon Options are located in the Global Options at Avada > Options > Logo > Favicons. Avada offers several fields to upload different sizes of favicons. Each one has its own unique size listed in the description.
To add favicons, simply click the ‘Upload’ button next to the appropriate field, then select the favicon file you would like to use. The best format to save your favicons in for uploading is a png file, but you can also use jpgs and svg files.
A very useful feature in the Image Element is the ability to independently set an aspect ratio. This is the width of the image in relationship to the height, expressed as a ratio. A square image, for example, would have an aspect ratio of 1:1, whereas most digital cameras produce an image with an aspect ratio of 3:2 in landscape or 2:3 in portrait.
Images, of course, have an inherent aspect ratio, so what this option does is allow you to override that aspect ratio after you have uploaded it (which in turn will visually crop the image somewhat, depending on the aspect ratio chosen). Let’s have a look at how this feature works!
OK, so the image above has an inherent aspect ratio of 3:2. When you insert an Image Element, and add an image to it, the Image Aspect Ratio is, by default, set to Automatic, and displays the image at its native aspect ratio.
There is a dropdown list under the Image Aspect Ratio options, and here, you can override the native aspect ratio with one of your own. The selections available are 1:1, 2:1, 2:3, 3:1, 3:2, 4:1, 4:3, 5:4, 16:9, 9:16, 21:9, 9:21, and Custom.
Note; if the higher number is at the start of the ratio, the image will display as a landscape image, whereas if the lower number is at the start, it will be a portrait image.
In the image below, I have chosen an aspect ratio of 1:1, which crops the image square.
There is also an option under this, called Image Focus Point. This allows you to select the part of the image that the aspect ratio will be centered around by moving the blue dot around the image. As you can see in the image above, it’s the right side of the image that mostly displays.
If you select Custom from the Image Aspect Ratio option, another option appears called Custom Aspect Ratio.
How this works is that here you are setting the height in relation to 100% width. So if I set this to 25, I get a ratio of 100:25, or reduced down, 4:1. This is what we see below. Any number above 100 would become a portrait ratio, so a figure of 400 would produce a ratio of 100:400, or 1:4.
Just note, that the image appears cropped, but it is in fact only cropped in the browser. If for example you right clicked on the image below and opened it in a new tab, you would in fact see the full image. For best results in terms of image optimisation, it’s perhaps still best to edit your images (both for size and aspect ratio) before uploading, but this helpful option allows you to qickly change the appearance of your images with little fuss, and little consequence.
Image Masks are an awesome feature in Avada. You will find them on the background tabs of the Container Element as well as in the Image Element. These masks easily enable you to constrain your images to only display through a shape, or a mask. There are lots of different masks you can apply to your images, and you can even upload your own custom masks. Read on to see how this works, and watch the video below for a visual explanation.
With the Container Element, the masks options are on the Background > Mask tab. This is very different usage to the image element in that here, they are intended to be placed over a background image in your container, and likely in conjunction with other elements. As such, there are different shapes and options.
With Containers, you have a selection of sixteen preset masks and the ability to upload your own custom mask (in svg format). Selecting a mask then reveals all the other options, with which to modify the mask.
All masks have a color option, and a few also have a second accent color option (as in the example above). These can be global colors, hexadcimal values or rgba values, but mostly opaque colors makes the most sense as there are options for opacity in the mask options.
The Mask Style option allows the mask to be inverted if required. This completely reverses where the mask itself, so that areas that were masked are now clear, and clear areas are now masked.
You can also introduce opacity into the mask with the Mask Opacity option. As you move this slider down, any solid section of the mask will become more transparent, allowing any background image to show through.
There are options here for both a vertical flip and a horizontal flip of the mask (or both). So with the Mask Style and Transform options, there is an enormous amount of possibility with adjusting the mask to suit your needs.
Finally, you can apply a blend mode to the mask. This works in the same way other blending modes work, and allows you to choose from sixteen different blend modes
With the Image Element, you will find the Mask options on the Design tab. Currently, there are eighteen different masks to choose from, as well as the ability to upload a custom mask (in svg format).
To enable a mask for your image, simply select one of the prebuilt masks. The mask will be applied and you can then further customise its shape and position with the other mask options. To use a custom mask just click on Custom, which is the last Mask in the set, and then you can upload an image to be used as the mask. Just note that the image should be in SVG or PNG format with a transparent background.
Once you have selected the mask, there is an option for mask size. The possible selections here are Fit, Fill, or Custom.
Fit is the default and allows the full mask to display as large as possible while at the same time making sure the full mask stays within the boundaries of the image.
Fill however, will make the mask as big as possible, so either on the left/right or on top/bottom the mask will get cut off at the boundary of the image, depending on whether the image is landscape or portrait.
Custom triggers a new option called Custom Size, which allows you to specify a size (any valid CSS unit) for the mask. The example below on the right is set to 70%.
Fit
Fill
Custom > 70%
Mask Position is the next option, which positions the mask over the image, and allows you to display different areas of the image. Here you have a choice of Top Center, Top Left, Top Right, Center Center, Center Left, Center Right, Bottom Center, Bottom Left, Bottom Right, and Custom.
If you choose Custom, a new option appears called Custom Mask Position, where you enter values in pairs, first for the X axis, and secondly for the Y axis, as coordinates for the position ex. 60% 50px.
Below from left to right, we have Center Center, Center Left, and Center Right. Note how different areas of the image are showing through the mask.
Depending on the Column size and the image, you might also want to employ the last Mask option, Mask Repeat. Here you have a choice of No Repeat, Repeat, Repeat X, Repeat Y, Space, and Round.
Below is an example of using the Repeat option, combined with a Custom mask size of 90px. There are many ways to use this feature, depending on your image, mask and desired outcome. As always, the best way to get to know a feature is to experiment. Go Wild!
Captions are now easy to add to image based elements such as the Image Element, Image Carousel and the Gallery Element. You can find Captions on their own tab, and fully control the look and feel of how they display with a variety of design styles.
Read on to find out more about this awesome feature for images, and watch the video below for a visual overview.
Captions and Titles are fields that are already available in images in the Media Library, as you can see in the image below. When you upload an image you can add, amongst other things, a Caption and / or a Title. The media based Elements with captions then pull that information directly from the images to display using the new Captions styles.
For images that don’t have captions and titles embedded in the file, you can add them (or override them) in the Element itself. There is one main difference however, between the Image Element, and the Image Carousel and Gallery Elements. With the Image Element, you can add the individual caption and title text on the Captions tab of the Element as it is a single image Element, but with the Gallery Element and the Image Carousel Element, these Image Title and Image Caption options are found by editing the individual Element items, found under the Children tab.
The range of options on the Caption tabs of the three image-based Elements are almost identical, bar for the Title And Caption options mentioned above. But for a full list and screenshots of the options available on the Captions tab, please see the individual Element docs: Image Element, Image Carousel Element, & the Gallery Element
There are a range of Caption styles to choose from. By default, captions are Off. There are two simple caption styles – Above and Below, and then a range of five styled caption designs. These are code named Navin, Dario, Resa, Schantel & Dany. Let’s look at these caption styles individually to see what you can achieve.
Schantel has the title at the top left, and the caption slides in below this on mouseover, with a background color. There’s also a new option with this style called Image Caption Background Color to control that color of course. There’s also a zoom in effect applied to the image with this style.
Images for websites is a deep and complex subject. There are many factors to understand and to take into account, and it’s not a topic where an easy, one size fits all answer will suffice. But if you want to know more about how images work with your website, and get a general overview of the factors at play, read on.
When we speak of image size, it is useful to keep in mind the two different sides of the issue. The first one is “What size images should I upload?”, while the other side is “What affects how large my images are displayed?” And these are not independent questions. You can’t answer the first one without also considering the second. Secondly, different usage requires different formats, and it’s good to know what formats suit what situations.
Below is a general guide on how to gauge how big or small your images should be to fit your website, as well as to ensure that they look crisp on your viewers’ screens. The size, and quality of the images on your website depends on a whole range of factors, such as the format, how big you upload them, your site width, whether they’re in columns or being used as a background image, whether you use sidebars, and even the resolution of the end user’s screen, to name just a few.
Continue reading below to learn more about these factors. Also, take a look at our extensive blog article, ‘A Comprehensive Guide To WordPress Image Optimization’, to explore the basics of image optimization, and watch the video below for a visual overview of the topic
Image size is also directly affected by your choice of image format. This is a huge topic, and way too big for a tutorial such as this, but basically, there are two major file fomats you are likely to be using on your website, as well as a few more upcoming and possible formats. There are both vector and raster image formats, and each format has their own strengths and weaknesses. For a more detailed look at image file formats, view this excellent article at HubSpot, or this one at Kinsta.
JPG (.jpg or .jpeg) is the most common image raster format for the web, most suitable for photos. It compresses well (maintains quality relatively well for the file sizes you can achieve). It doesn’t support transparency, but it’s by far the most common image format.
PNG (.png) is also a very common image format, with specific strengths. It was invented to replace GIFs, and is a lossless format and also supports transparency. This means it is great for logos and other images that require transparency. It is also a good format for high quality photos, but the comparitive file size is much bigger than a jpg.
GIF (.gif) is a lossless format, meaning that a GIF retains all the data contained in the file, but they are smaller than JPGs, specifically because they only accommodate up to 256 indexed colors. GIF also supports transparency, but for logos, PNGs are a better format. This format is slowly being replaced by the .png format, but where GIFs still shine, is that they can be animated, and so are very useful in some situations.
SVG (.svg) is a vector format, which while having wide browser support, is not yet as easy a file format to implement as the others. It is however a great choice for logos, or other graphics you want to be tack sharp. Unlike raster formats seen in JPG, GIF, and PNG, an SVG image remains crisp and clear at any resolution or size, because they are mathematically declared shapes and curves, not pixels.
WebP is the new kid on the block, this file format is developed by Google, and was developed specifically to provide better lossless and lossy compression of images. This format does not have 100% browser support at this time, but there are ways around this using image optimisation plugins like ShortPixel. For more info on how to implement WebP with WordPress, check out this post.
Images that are too large are one of the main causes for slow loading websites. So if you want a really slow website, just upload images straight from your phone, camera or other capture device. These are often over 5,000px in width and up to six or seven megabytes in size. This will ensure your pages take forever to load. This approach is incredibly common, yet it doesn’t take into account the size (both in pixels, and in kilobytes, or even megabytes) of the image being uploaded.
But we all want fast loading websites, and so we need to consider these things. To do this, and to determine what size our images should be, we need to understand a few things about images, and about how big the space we are adding the images into actually is. The first thing to understand is how images for the web are sized.
For a start, forget about what ppi (pixels per inch) your image is. It makes no difference in a web browser, and doesn’t affect file size either. It is a printing instruction, and can be completely ignored with images for the web. Despite this, it’s a standard to upload images that are at 72ppi.
The most important figure to understand about images for the web is the pixel dimensions. Capture devices, like cameras and phones, capture images at a fixed aspect ratio and size. The longest length of an image is usually in the range of 3,000 – 7,000 pixels, but this depends entirely on the device. But this is what you most need to consider when preparing your images for uploading to a website. We will cover more on what’s an appropriate size, but as a very rough guide, images around 2,000 – 2,500 pixels on the longest length are considered the largest size you’d ever need to upload. In many cases, images around 600 – 1200 pixels would be more appropriate. And images that are only a couple of hundred pixels in width (like logos) will be fine in small Columns, but would pixelate if added to larger Columns.
When it comes to file size, this is determined by three things – the complexity of the image (an image of the blue sky will be much smaller than the same-sized image of a forest), the pixel dimensions of the image, and the compression applied to the image. There’s not much you need to know about the first one, and the second one will be determined by other considerations, but the compression is also important. This setting, available in virtually all graphics software and via image optimization websites or WordPress plugins, reduces the kilobyte size of an image and optimizes it for the web. The more compression you apply, the smaller the file size. But quality is also reduced. So, a balance between the two needs to be found. Check this comprehensive guide on image optimization.
So, now you know a bit about resizing images, and what formats to potentially use, how do you actually decide how big your images should be? Well, it all starts with your Site Width. You’ll find this setting in Avada > Options > Layout > Site Width. This can be a percetage value, but web design is still largely pixel based, and the current default width is 1200px (this is to do with screen reslolutions, which we will get to…)
Let’s say your Site Width is 1200px. That means that all the content on your site will display across 1200 pixels of the monitor it’s being viewed on. As an example, the content on this documentation, including the sidebar, is 1300px. (You can break the content out of this Site Width by using the 100% Width setting on Containers, or a slider, but again, we will get to that…)
Therefore, if you had a full width Column with an Image Element, an appropriate size for your image would be around 1200px. To determine the image size, we just need to consider the width (in pixels) of the area it will be added to.
So now, let’s say you have two one-half columns, and you want an image to display in one of them. How big does that image need to be? Well, around half of the Site Width would be a good starting point. So, around 600px. If you optionally wanted the image to be able to be opened in a Lightbox, you might initally upload a larger version (perhaps 1000 – 1500px) and then insert a 600px version into the column, and the full size into the Lightbox option of the Image Element.
In the example below, instead of being added via the Image Element, the image has been added to the background of the Column (to enable the overlaid Text and Button Elements). But it’s still being displayed in a one-half Column, and so an image size of approximately 600px would be appropriate. You could still enable a Lightbox with this method as well, only you’d do that via the Link URL and Link Target options in the Column itself.
Now, let’s say you want to use the image in the background of a Container that’s set to 100% width, or as an image in a full screen slider? Both methods break the image out of the Site Width, and now it’s a completely different consideration we have to take. Now, what’s most important is the screen resolution (or pixel width) your users are viewing it on. This can be tricky, as there are many different screen resolutions.
The most common is still standard laptop resolution (1366px). This is why the default Site Width is 1200px, so that the content fits on this screen resolution. But Full HD is resolution, and 4K monitors are gaining in popularity as well (3840px). Some iMacs even have 5K resolution (5120px). So, how do we take all these different screen resolutions into account? A common way to approach this is to use an image size of around 2,000-2,500px. This covers most screen resolutions, and it is not interpolated significantly except for 5K monitors.
In the first example below, the page is using the 100% width template, which means that any container background images go full width. The container itself is also set to Full Height. And so the image size needs to be large enough to fill the screen. In this case, the image used is 1803px x 902px, which is almost the size of an HD monitor resolution. This could be bigger, but here it’s being used as a background image, and so the quality is not as important.
Note: Just to be clear, if viewed on a 5K iMac, this 1803px image would be distributed across the full 5120px of the iMac’s screen (less scrolling bars), effectively reducing the quality of the image. But on a laptop, with a resolution of only 1366px, the image would be more than big enough and would be crisp. It’s all about finding a sweet spot between screen resolution and file size (which comes directly from your choice of pixel dimensions). If you were sure most of your users were using iMacs, you’d probably make this image closer to 4000-5000px, but it would then be a much larger file.
In the second example, the image is being used in a full screen slider. In this case, the image is sized at 2500px width, which on more than 95% of screen resolutions, would be larger than the monitor’s resolution and therefore be nice and sharp. With larger images such as these, optimisation of images using compression becomes even more important to keep file size, and therefore page load speed, down.
Once you know what the largest size is of an image you want to upload, then you need to prepare it. This simply involves resizing it to the desired pixel width, and then applying compression before uploading it to your server. To learn more about image compression, read this detailed blog post, or our own blog post on Image Optimization.
In short, you can use graphics software like Adobe Photoshop to compress your images for web as you save them. Alternatively, there are many good websites, such as Compressor. Additionally, you can also use image compression plugins, such as Short Pixel, to further compress image. A bonus is that you can also use such plugins to generate .WebP images on your site.
A well compressed image that has first been resized to the correct pixel values can be many times smaller than the original file. in the example below, you can see that the original jpg was 805kb, but that with 40% compression, the final size of the image came down to only 163kb, almost 5 times smaller.
As mentioned above, the size of the area the image will be displayed in is the major factor that determines how big it should be. Here are the main theme related areas that will affect this.
Example: As can be seen in the example below, if we start with a Site Width of 1170px (this is what the Charity Website has), but then use a dual sidebar layout, using the global option defaults, the sidebars combined take up 42% of the site width. This leaves approximately 679 pixels for the content area. And then there are the Column margins. So if adding an image in a one-half Column in this situation, it would only need to be around 330px width.
One crucial thing to understand – when uploading an image to your Media Library, a range of images of different sizes are automaically created at the same time. WordPress creates some of these (the Small, Medium, and Large Thumbnail sizes specified in WordPress > Settings > Media, and one unlisted intermediate size) and Avada itself creates a number of sizes to best suit certain situations. These image sizes are then automatically applied to different sections of the site. See the How Avada Controls Responsive Images document for more details on this.
When adding an image to the page content, such as through Elements, you’ll find the ‘Attachment Display Settings’ section at the bottom right of the Media Library. Your choices in this section also directly affect how your images display on the page, as here you are choosing which version of the image to use.
Step 1 – When you upload an image into the page content, the Media Library window will appear.
Step 2 – Select or upload your desired image. At the bottom right side of the window, find the ‘Attachment Display Settings’ section.
Step 3 – Under this section, you’ll find the ‘Size’ option. Using this option, you can select which size to use when uploading an image. You can choose between Thumbnail, Medium, Large or Full Size, plus a range of Avada size settings.
Step 4 – Choose the right image for the area you are adding the image into.
When uploading a background image to an Avada Builder Container, you may notice that only a portion of your image is displayed when viewed on mobile or tablets. This is how the theme naturally handles background images, and is not a responsive issue. The background image is first centered, then it will resize proportionally until the image’s width or height is equal to the container’s width or height (whichever is greater). For example, if you have a 500px x 500px image and a 100px x 350px container, then your background image will be resized to 350px x 350px. Please refer to the examples below for a visual representation of this.
Getting images right is a crucial part of a visually interesting and fast loading website. And there’s a learning curve to be sure. But the benefits to be had are numerous, and it’s all part of the fun of building and maintaining an Avada website!
We regularly get support tickets asking why a background image is cropped or zoomed in. So here’s some information on how background images work to help explain those situations when a background image doesn’t look like you expect it to.
It all starts with the concept of image aspect ratios. This is the relationship between the width and height of an image. So if an image is 1200px by 800px, it has a 3:2 aspect ratio, in that if its length were 3, its height would be 2.
In this document we will look at adding background images to container and then columns.
When you add a background image to a container, this is what happens: Images set as backgrounds on containers span to the height or width of the container while maintaining their aspect ratio; effectively, always filling the container. But containers by themselves have no height at all, so it’s the content (or padding) that determines their height, and the Site Width setting that determines the width (or the screen it’s being viewed on with the 100% width template).
Let’s take a simple example to illustrate. In the diagram below, the image is 1200px wide and 800px high. Let’s also say that the site width has been set to 1200px in the Layout > Site Width option, the page is using the Site Width template, and that the container height is exactly 800px, either through content, or padding. In this case the image would display fully, at its native aspect ratio.
Now if the container height was increased to 1000px, either through content or padding, then the image will now display at 1000px height, and keeping its aspect ratio, 1500px in width. So here the image will be slightly zoomed in, and slightly cropped on both sides.
And here’s a real world example. The container below is completely empty (no column or elements) and has padding set to 200px in height. The image set as a background image is 1200px x 847px, and so grows slightly to the width of the site layout (in this case 1280px) and (on desktop at least) we can only see 200px of its height, in the middle of the image, as this image has a Background Position of Center Center.
But on a mobile device, something else happens. The site goes into responsive mode, and because the width of the device is so much smaller, but the padding of 200px remains, we get an image that is 200px high and at that screen width, we are seeing almost the whole image again. This is just how responsive web design works.
Things are also a little different when you add a background image to a page with the 100% width template. Then, it’s the user’s screen size that comes into play. With a large resolution monitor, for example a 4K monitor, which has a resolution of 3840px x 2160px, then images might have to upscale considerably. It’s always a balance between image file size and pixel size, and so a typical approach is when uploading a container background image on a 100% width template, is to ensure the image is at least 2000px in width, so the upscaling is kept to a minimum.
Here’s a final illustration, showing an example of a container on a page using the 100% width template, on a large monitor. The image displays at the width of the screen resolution (minus any scroll bars etc) and the image will be cropped in height unless the container height equals the images’ native aspect ratio. So for an image with a 3:2 aspect ratio and sized at 2000px, the container height would need to be around 1333px for no cropping to occur. So in most situations, some cropping will occur, and the image will be zoomed in. If your image is very pixellated in a situation like this, it’s because the uploaded background image isn’t large enough to upscale on a large monitor without pixellation.
Columns are a bit different than containers. They grow to the size of the background image inserted. Below is the same image inserted as a column background, into an empty 1/1 column. The column adjusts its height to show the image in full. In this case, as the image is only 1200px wide and the site width is 1280px, the image is also slightly zoomed in.
If we resize the columns, then the image displays smaller, always showing the full image. However, if our column content increase past the aspect ratio of the image, then the height of the image will always fill the column, and the image will be cropped on the width to keep the image aspect ratio intact. See two examples of that below.
On the left hand side, the column has simply been resized to 1/2. The full image displays, and is just scaled down to fit the 1/2 dimension. On the right hand side, however, content has been added that pushes the height of the column past where the apsect ratio of the image would make it. And so the height of the image is maintained, while the image is zoomed in on the sides, cropping the image, but keeping the aspect ratio intact.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae et leo duis ut diam quam. Cras semper auctor neque vitae. Porta non pulvinar neque laoreet suspendisse. Elementum curabitur vitae nunc sed velit. Mauris in aliquam sem fringilla ut morbi tincidunt augue interdum. Bibendum arcu vitae elementum curabitur vitae nunc. Eget nunc lobortis mattis aliquam faucibus. Volutpat commodo sed egestas egestas. Ut sem nulla pharetra diam sit amet nisl. Semper eget duis at tellus at urna. Dictumst vestibulum rhoncus est pellentesque elit ullamcorper. Velit egestas dui id ornare arcu odio ut. Ut consequat semper viverra nam libero justo laoreet.
Hopefully, this article goes some way towards explaining how images work as Container and Column backgrounds. There are a lot of scenarios we haven’t covered here, but the principles are the same. Web design can be complex, but with an understanding of the principles at play around the theme and how it interacts with images, then you can achieve a satisfying result every time.
Lazy Loading for images can be enabled under the Performance tab at Avada > Global Options > Performance. What this does is to only load the images that are visible in the viewport. As the user scrolls and more images come into view, they are then loaded as well. This provides an instant benefit to page load times, as only the initial images in the viewport are loaded.
Lazy Load is enabled in these areas and elements in Avada:
For more information on How Avada Controls Responsive Images, please see the linked doc.
In the Elements themselves, there is also an option to Skip Lazy Loading, which allows you to turn it on universally, and then control the individual Elements to turn it on or off. For example, it you add a logo image to the header, or an image to the top of the page, you would want to skip lazy loading for those resources as they are in the initial viewport.
Images are a huge part of every website, and here at ThemeFusion, we are always looking for ways to improve the load time of pages by making sure that images are loaded as efficiently as possible.
We have long had features specifically for dealing with images, including multiple image sets and Retina versions of logos and other elements, We have introduced several performance related features specifically for how Avada handles images. Let’s have a look at this!
To understand how Avada handles images, you need to know some technical background. You might know, that when you upload an image to the WordPress Media Library, WordPress actually makes 4 other sizes of that image, based on the sizes you specify in the WordPress > Settings > Media settings (plus an unlisted intermediate size). You might also know that Avada creates another 13 versions of the image as well, so that there will be an appropriate sized image for any area in the theme you might use it in. This might seem excessive, as there will be 18 files for each image uploaded, but the extra file size isn’t really that large if your initial image upload is well optimized, and the performance benefits far outweigh the extra storage.
To improve their image handling, WordPress also made some changes back in version 4.4, that added native responsive image support, by including srcset
and sizes
attributes to the image markup it generates. By including the available sizes of an image into a srcset
attribute, browsers could now choose to download the most appropriate size and ignore the others—potentially saving bandwidth and speeding up page load times in the process.
Let’s just look at the scrcset and sizes attributes to understand their syntax.
srcset – This defines the set of images we allow the browser to choose between, and what size each image is. So the browser gets a list of available images and also the information of the width of each of these images.
Syntax
Example
sizes – This defines a set of media queries (viewport widths) and indicates what image size would be best to choose, when the corresponding media condition is true.
Syntax
Example
Now with these 2 attributes, the browser will do the following:
In WordPress, not many image sizes are available by default, and most are also hard cropped. Additionally, the sizes attribute is pretty generic. So, out of the box, you don’t get you the big performance boost.
What Avada does now is:
So in all cases, from desktop to mobile, from one column to 6 columns, from full width to double sidebar pages, we’ll give the browser all information to load the best available image size. And that, for both retina and normal screens.
In the Global Options > Perfomance tab, you will also find the Avada Image Sizes option, which allows you to choose what image sizes Avada generates when you upload. As the description notes, when you remove image sizes here, please check your site to make sure all layouts display correctly, and after changing this value, please install and run the Regenerate Thumbnails plugin.
We also introduced Lazy Load for images. This can be enabled under the Performance tab at Avada > Options > Performance. What this does is to only load the images that are visible in the viewport. As the user scrolls and more images come into view, they are then loaded as well. This provides an instant benefit to page load times, as only the initial images in the viewport are loaded.
Apart from uploading a Retina version of your logos and favicons, you don’t need to worry about responsive images in Avada. The most important thing you can do with your images is to make sure they are well optimized. Users of Photoshop can use the Export As function, and use a fair amount of compression, and we have also found that compressor.io does a good job dealing with compression. There re also image plugins like Smush it and Short Pixel that can help. Have a read of our Image Optimization Guide for more info.
You can also select different images for the three different screen sizes when adding background images to a Container or Column. This option is found in the Container or Column Elements, in the Background > Image Tab > Background Image option. Here you will see the Responsive Icon, and you can select the various sizes there to upload different images for your container or column backgrounds.
Never before has it been easier to display the differences between two images. The Image Before & After Element allows you to beautifully highlight image differences with two transitions. Slide, and Fade. Each transition has its own customization options for even more flexibility. Read below for an overview of the Image Before & After Element, and watch the video for a visual overview.
The Image Before & After Element is a new visual element to highlight the before and after state of something using two images. Just add the Element to your desired column.
Now you have the options window open. The first step is to choose your Effect type. View the More Examples link at the top of the page to see the various effects. Once you have chosen your effect type, you need to choose your Before and After images and their labels if desired. There are then a number of options to do with the label, border, border size options, image fade transition speed, plus a whole list of options to control how the handle looks and is placed.
There is also an animation tab if you wish to influence how the element loads on the page.
Note: The Default setting will use the global settings assigned for this element in your Options > Avada Builder Elements > Image Before & After section.
The Image Carousel Element is perfect for showcasing a set of images, your portfolio pieces, client logos and much more. The customization options it offers give you incredible flexibility to choose how it looks, works, and interacts with the user. Read below to discover more about this useful visual element.
The Image Carousel Element allows you to add beautiful image carousels to your website, with a minimum of fuss. Just add the Element to your desired column.
This is a relatively simple element with some basic styling options, but make sure to view the Image Carousel Element Demo page, to appreciate the different layouts and options on offer. The first two parent options relate to the images displayed on the carousel. Firstly, you need to select or upload the images you want to use, and then choose their size. The Bulk Image Upload option allows you to add all the carousel images in one go, instead of one at a time from the child options. Simply choose the images you want to add by clicking on Select Images and choosing images already in your Media Library by using the Cmd / Ctrl key, or by uploading and selecting new ones (these will be auto-selected). Once you have finished your selections, click Insert into Page. With the fixed size option, a fixed width and height are used, and so, if images chosen have a different aspect ratio or orientation, they will be cropped, so that all thumbnails have the same size. With the Auto option, the width and height will adjust to each image. For best results using the image carousel, it is recommended that you use images of the same size and orientation, to avoid cropping and unusual layouts.
The remaining parent options are styling options, like the Hover type, whether the carousel should autoplay, the maximum number of columns on the screen, as well as some spacing, scrolling, and border options. There is also an option for the individual carousel images to open in a Lightbox.
If you use Autoplay, there is a Global option under Options > Avada Builder Elements > Carousel, called Carousel Speed. You can adjust this to control the speed of the Carousel. This affects all carousels, not just the image Carousel.
Once you have set all your Parent Options, you add Child Items on the left. Click the pencil icon to edit the existing item. The Child Item Options Panel appears. In this Element, this is a very simple section, where you can edit each image for the carousel, or add new ones. Each image can link to a URL if you wish, and there are options for the image links to open in a new window, and you can add alt text to each image.
If you wish to add additional images to the Image Carousel, you can then duplicate existing ones or add new images by clicking on the Clone Item icon, or the + Image button respectively.
Read below for a detailed description of all element options.
Note: The Default setting will use the global settings assigned for this element in your Options > Avada Builder Elements > Carousel Elements section. Also, please note that the displayed options screens below show ALL the available options for the element. If you have Avada’s Option Network Dependencies turned on, you will only see options relevant to your selections, and so the options screen may look somewhat different.