Images – Avada Website Builder https://avada.com For WordPress & WooCommerce Sun, 15 Dec 2024 22:10:39 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 How To Set Favicons In Avada https://avada.com/documentation/how-to-set-favicons-in-avada/ Tue, 07 May 2024 21:54:53 +0000 https://avada.com/?post_type=documentation&p=894293

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.

Avada
For privacy reasons YouTube needs your permission to be loaded.

Creating Favicons

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.

Setting Site Favicons

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.

Upload Favicons
]]>
How To Use Image Aspect Ratios https://avada.com/documentation/how-to-use-image-aspect-ratios/ Thu, 13 Jan 2022 00:19:18 +0000 https://theme-fusion.com/?post_type=documentation&p=876548

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!

Breakfast

Selecting An Aspect Ratio

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.

Image Aspect Ratio Options

Image Focus Point

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.

Custom Aspect Ratio

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.

Custom Aspect Ratio

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.

Breakfast
]]>
How To Use Image Masks In Avada https://avada.com/documentation/how-to-use-image-masks/ Wed, 12 Jan 2022 22:58:19 +0000 https://theme-fusion.com/?post_type=documentation&p=876546

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.

For privacy reasons YouTube needs your permission to be loaded.

Container Element

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.

Container Image Masks 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

Image Element

Example Image

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.

Image Mask Options

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%.

Example Image

Fit

Example Image

Fill

Example Image

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.

Example Image
Example Image
Example Image

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!

Example Image
]]>
How To Use Captions On Image Based Elements https://avada.com/documentation/how-to-use-captions-on-image-based-elements/ Mon, 18 Oct 2021 21:52:16 +0000 https://theme-fusion.com/?post_type=documentation&p=869564

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.

For privacy reasons YouTube needs your permission to be loaded.

Where Do Captions Come From?

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.

Media Library > Title And Caption Fields

Caption Options

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

Caption Styles

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.

Above

As the name says, the Title and Caption are placed above the image with this selection. You can control the color and size of the fonts etc used with the Element Options.

Captions Example > Above

Below

This is exactly the same as Athe previous style, only this time, the title and Caption sit below the image.

Captions Example > Below

Navin

This places a color overlay over the image. And we can see the title on the image itself. So here, when we mouse over the image, the overlay disappears, and the title lifts up so there’s room for the caption to slide in beneath it.

Captions Example > Navin

Dario

OK, Dario is the next style, and this one places the Title near the top, and upon mouseover a border slides in under the title, and the caption slides in from the other side

Captions Example > Dario

Resa

Resa is a very stylish design. It only shows the title initially, but on mouseover the title and caption are aligned in the center of the image, and a border appears around the inside of the image.

Captions Example > Resa

Schantel

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.

Captions Example > Schantel

Dany

Finally, there is Dany. This puts the title at the bottom of the image, and on rollover, the image and title lift up, and the caption is presented with a background color. This option also has the Image Caption Background color option.

Captions Example > Dany
]]>
Image Format And Size Guide https://avada.com/documentation/image-format-and-size-guide/ Thu, 21 Jan 2021 20:31:38 +0000 https://theme-fusion.com/?post_type=documentation&p=843441

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

For privacy reasons YouTube needs your permission to be loaded.

Image Formats

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 / JPEG

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.

Train Tracks in Forest

PNG

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.

Avada Website Builder Logo - 1

GIF

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.

FileBird Filter Options

SVG

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.

Avada

WEBP

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.

Image Element Hero

What Size Images Should I Upload?

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.

Pixel Size and File Size

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.

Resizing and Compressing Images for the Web

So, What Size Images Did You Say I Should Upload?

Images Within The Site Width

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.

Image Size in Half Column

Images Using The Screen Width

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.

Image Size in 100% Template

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.

Image Size in Slider

Image Compression

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.

Image Compression - Export As

Options That Influence Image Size

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.

  • Site Width – Located in the Global Options > Layout panel. This setting allows you to set the overall width of your site, which can affect how big or small your images should be, and how big they will display. This also affects your columns, which will affect any images you display inside them.
  • Page Template – As previously mentioned, if using the 100% Width Page Template, any images added as background images into a full width Container display at the full width of the user’s screen (less any left/right Container margins and scrolling bars).
  • Container > Interior Content Width Option – Also, if using the 100% Width Page Template, any Container can have the Interior Content Width options set to 100% Width, thereby making the Container’s content stretch the full width of the viewer’s screen (again less any Container margins and scroll bars).
  • Column Width – Set in the individual Containers, the size of the Columns, as described above, has an obvious effect on what size image should be used. A good rule of thumb, when not using Sidebars, is to use an image sized at the Site Width divided by the Column Width.
  • Sidebars – Located in the Global Options > Layout panel, or in the Avada Page options. Having a sidebar allows you to set a sidebar width, which will affect Column size as well.

  • Dual Sidebars – Located in the Global Options > Layout panel, or in the Avada Page options. You also have the option to have 2 sidebars on each side of your website, and this will also affect Column Size.

  • Margins & Individual Element Spacing – Column sizes, and individual Elements, also have spacing options, such as padding and margins. A good example is column spacing, which affects how wide columns are displayed on the page, which in turn affects how big your images in columns will display.

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.

Dual Sidebar - Half Column Image Size

Slider Image Sizes

  • Fixed Width – If you’re using a fixed width slider, then the appropriate image size for your slider would be your slider width and height. For example, if you have a slider width of 1100px and a slider height of 500px, then your image size should be 1100px wide and 500px high.
  • 100% Width – As for siders that are 100% width, the image size you should use depends on a few factors such as the screen it’s being viewed on, and the slider height. As a general rule, we currently use images that are 2000px wide for our prebuilt websites, which is usually big enough to make images look great on all common screen resolutions. As 4K monitors penetrate the market in bigger numbers, this might have to increase. The height of the image depends on the pixel value you’ve set for the slider. For example, if you have a slider that is 100% wide and 400px high (see screenhsot below), then your image size should be around 2000px wide and 400px high.

  • Full Screen Slider – Images for Full Screen sliders fully depend on the screen it’s being viewed on. Because it’s difficult to tell what screen your viewers are viewing your site on, it’s best to use a general size that is big enough for all general screen sizes. As a guide, we use images that are around 2000px wide and 1100px high for full screen sliders on our prebuilt websites.

Image Size Guide - Sliders

Attachment Display Settings

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.

Image Size Guide - Full size Images

Container Background Image Sizes On Mobile Devices

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.

Conclusion

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!

]]>
How Background Images Work in Avada https://avada.com/documentation/how-background-images-work-in-avada/ Mon, 16 Dec 2019 07:13:27 +0000 https://theme-fusion.com/?post_type=documentation&p=677309

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.

Container Background Images

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).

Example

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.

How Background Images Work - Containers

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.

How Background Images Work - Containers

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.

Container Background Image > Responsive Mode

100% Width Template

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.

Example

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.

How Background Images Work - Containers on 100% width template

Column Background Images

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.

Examples

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.

]]>
Image Lazy Loading https://avada.com/documentation/image-lazy-loading/ Thu, 30 May 2019 19:48:02 +0000 https://theme-fusion.com/?post_type=documentation&p=617654

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.

Image Lazy Loading

Where Is Lazy Load Enabled?

Lazy Load is enabled in these areas and elements in Avada:

  • Blog Element – medium, large, grid and masonry

  • Blog Archive – medium, large, grid, and masonry

  • Single Blog Post Featured Image, first and slides

  • Blog Grid with multiple images

  • Portfolio Element – grid and masonry

  • Portfolio Archive

  • Single Portfolio Post Featured Image, first and slides

  • Gallery Element

  • Image Element

  • Image Before/After Element

  • Person Element

  • Testimonial Element

  • Content Box Element

  • Flip Box Element

  • Slider Element

  • Post Slider Element

  • Recent Posts Element

  • Lightbox Element

  • Container background

  • Column background

For more information on How Avada Controls Responsive Images, please see the linked doc.

Skip Lazy Loading

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.

Applying Skip Lazy Loading
]]>
How Avada Controls Responsive Images https://avada.com/documentation/how-avada-controls-responsive-images/ Wed, 06 Mar 2019 14:23:48 +0000 https://theme-fusion.com/?post_type=documentation&p=567541

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!

WordPress & srcset

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

Copy to Clipboard

Example

Copy to Clipboard

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

Copy to Clipboard

Example

Copy to Clipboard

Browser Algorithm

Now with these 2 attributes, the browser will do the following:

  • Look at its device width.
  • Work out which media query in the sizes list is the first one to be true.
  • Look at the slot size given to that media query.
  • Load the image referenced in the srcset list that most closely matches the chosen slot size.

Avada Additions

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:

  • As mentioned earlier, we create several uncropped images, 200, 400, 600, 800, 1200 etc., which makes sure that for all kinds of devices and scenarios, the right image size will be available.
  • For the sizes attribute, we check and calculate the exact content width. That is a pretty difficult task, as you can set the site width in px, but also in %. You can have full width pages, or pages with sidebars, have page padding etc. We take all of this into account.
  • Additionally, we also check if your images are displayed in a grid with columns: e.g. gallery, or image carousel etc. That is important, because if you have a site width with 1200px, but have 4 columns, obviously on desktop you will only have 300px per column. Of course, we also subtract the column spacing correctly.
  • For single images, we also check if they are part of a parent column, that is smaller than the full width. The reason for this is the same as above.
  • Finally, we also calculate the sizes media queries in a way that makes sure your responsive breakpoints and grid column amounts are taken into account.

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.

Avada Image Sizes

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.

Avada Image Sizes

Lazy Load

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.

Responsive Images

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.

Responsive Background Images

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.

]]>
Image Before & After Element https://avada.com/documentation/image-before-after-element/ Wed, 07 Nov 2018 17:54:48 +0000 https://theme-fusion.com/?post_type=documentation&p=519802

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.

For privacy reasons YouTube needs your permission to be loaded.

How To Use The Image Before & After Element

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.

Element Options

Note: The Default setting will use the global settings assigned for this element in your Options > Avada Builder Elements > Image Before & After section.

General

HeadingDescription
Effect TypeSelect which type of effect your before and after image uses. “Slide” provides a handle to move back and forth while “Fade” changes the image on mouse hover.
Before ImageUpload a before image to display.
Before Image LabelAdd text that will be displayed as a label on the before image when hovered. If left empty, no label will show.
After ImageUpload an after image to display.
After Image LabelAdd text that will be displayed as a label on the after image when hovered. If left empty, no label will show.
Link URLAdd the URL the item will link to, ex: http://example.com.
Link TargetControls how the link will open.
MarginEnter values including any valid CSS unit, ex: 4%.
Element VisibilityChoose to show or hide the element on small, medium or large screens. You can choose more than one at a time.
CSS ClassAdd a class to the wrapping HTML element.
CSS IDAdd an ID to the wrapping HTML element.

Design

HeadingDescription
Label Font SizeControls the font size of the label text. In Pixels. Note: font family is controlled by body font in Global Options.
Label Accent ColorControls the color of the label background and text. Text takes 100% of this color, background takes a % of it.
Label PlacementChoose if labels are on top of the image and centered, on top of the image up & down or outside of the image up & down.
Label Hover TypeChoose if labels should appear together on hover, or if only the label of the currently hovered image should appear.
Image Fade Transition SpeedControls the speed of the fade transition on mouse hover. In seconds.
Handle Design StyleControls the design of the handle used to change the before and after image.
Handle ColorControls the color of the before and after image handle line and arrows. ex: #ffffff.
Handle Background ColorControls the background color of the before and after image handle switch. ex: #000000.
Handle OffsetControls where the handle will be positioned on page load allowing you to control how much of each image displays by default. In percentage.
Handle OrientationControls the position of the before and after image handle.
Handle Movement ControlControls how the viewer interacts with the image handler. The image handle can use Drag & Click, Drag Only, or Hover.
Max WidthSet the maximum width the element should take up. Enter value including any valid CSS unit, ex: 200px. Leave empty to use full image width.
AlignmentChoose how to align the image.
Border SizeIn pixels.
Border ColorControls the border color.
Border RadiusControls the image border radius. In pixels (px), ex: 1px, or "round".

Extras

HeadingDescription
Animation TypeSelect the type of animation to use on the element.
Direction of AnimationSelect the incoming direction for the animation.
Animation ColorSelect the color of the animation
Speed of AnimationType in speed of animation in seconds (0.1 - 5).
Animation DelaySelect the delay time after the animation starts(0 - 5).
Offset of AnimationControls when the animation should start.
]]>
Image Carousel Element https://avada.com/documentation/image-carousel-element/ Mon, 22 Oct 2018 04:50:24 +0000 https://theme-fusion.com/?post_type=documentation&p=522757

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.

For privacy reasons YouTube needs your permission to be loaded.

How To Use The Image Carousel 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.

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.

General

HeadingDescription
Bulk Image UploadThis option allows you to select multiple images at once and they will populate into individual items. It saves time instead of adding one image at a time.
Order ByDefines how items should be ordered. NOTE: This option will not work in the Live editor.
Picture Sizefixed = width and height will be fixed auto = width and height will adjust to the image.
Hover TypeSelect the hover effect type. Hover Type will be disabled when caption styles other than Above or Below are chosen.
AutoplayChoose to autoplay the carousel.
Column AlignmentSelect the column alignment within rows.
Maximum ColumnsSelect the number of max columns to display.
Column SpacingInsert the amount of spacing between items without "px". ex: 13.
Scroll ItemsInsert the amount of items to scroll. Leave empty to scroll number of visible items.
Show NavigationChoose to show navigation buttons on the carousel.
Mouse ScrollChoose to enable mouse drag control on the carousel. IMPORTANT: For easy draggability, when mouse scroll is activated, links will be disabled.
BorderChoose to enable a border around the images.
Image lightboxShow image in lightbox. Lightbox must be enabled in Global Options or the image will open up in the same tab by itself.
MarginEnter values including any valid CSS unit, ex: 4%.
Element VisibilityChoose to show or hide the element on small, medium or large screens. You can choose more than one at a time.
CSS ClassAdd a class to the wrapping HTML element.
CSS IDAdd an ID to the wrapping HTML element.

children

HeadingDescription
Add / Edit ItemsAdd or edit new items for this element. Drag and drop them into the desired order.

Caption

HeadingDescription
CaptionChoose the caption style.
Image Title Heading TagChoose HTML tag of the image title, either div or the heading tag, h1-h6.
Image Title TypographyControls the typography of the image title. Leave empty for the global font family.
Image Caption Background ColorControls the background color of the caption.
Image Caption TypographyControls the typography of the image caption. Leave empty for the global font family.
Caption Border ColorControls the color of the caption border.
Image Overlay ColorControls the color of the image overlay.
Caption AlignChoose how to align the caption.
Caption Area MarginIn pixels or percentage, ex: 10px or 10%.

Dynamic Content In Layouts

When using the Image Carousel Element in Avada Layouts, you will also find a dynamic content option under the Bulk Upload option. Here you can add Featured Images, ACF Galleries, or Woo Galleries.

Image Carousel Element In Layouts > Dynamic Content
]]>