Image Lazy Loading

Image Lazy Loading

In Avada 5.8, we introduced Lazy Load for images. This can be enabled under the Performance tab at Avada > Theme 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.,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.

Image Size Guide

Image Size Guide

Image size 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.
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 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.
Overview
What Size Images Should I Upload?
Pixel Size And File Size
Image Formats
So, What Size Images Did You Say I Should Upload?Images Within The Site WidthImages Using The Screen WidthImage Compression
What Affects How Large My Images Are Displayed
Options That Influence Image SizeSlider Image SizesAttachment Display SettingsContainer Background Image Sizes On Mobile Devices,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 SizeFor 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, as well as via image optimisation 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. To learn more about image size and compression, read this detailed blog post.,Image FormatsImage 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 / JPEGJPG (.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.
PNGPNG (.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.
GIFGIF (.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.
SVGSVG (.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.
WEBPWebP 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.
767,650 Businesses Trust Avada
Get Avada767,650 Businesses Trust Avada
Get Avada767,650 Businesses Trust Avada
Get Avada,So, What Size Images Did You Say I Should Upload?Images Within The Site WidthSo, 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.
Images Using The Screen WidthNow, 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 deafult Site Width is 1200px, so that the content fits on this screen resolution. But Full HD (1920px) is the second most common 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 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 a 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.,Image CompressionOnce 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.,Options That Influence Image SizeAs 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.,Slider Image SizesFixed 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.,Attachment Display SettingsOne 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 into 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 affects 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.,Container Background Image Sizes On Mobile DevicesWhen 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.,ConclusionGetting 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!

Creating A Gallery With Image Elements

Creating A Gallery With Image Elements

The Image Element allows you to create a photo gallery on a page or post through the 『Gallery ID』 option. In this article, we』ll show you how to use the 『Gallery ID』 option to add multiple Image Elements creating a lightbox gallery. To learn how to do this please continue reading below.
Read Our Image Element Article View The Image Element Gallery In ActionNote: This post covers how to create a gallery, where each image is its own Image Element linked through a common Gallery ID. This is primarily to have a lightbox gallery. If you』re looking to create a single element which displays a gallery of images, you may want to check out our Gallery Element for that.
Read Our Gallery Element ArticleHow To Insert An Image ElementStep 1 – Create a new page or edit an existing one.
Step 2 – Click the 『Use Fusion Builder』 button to activate the Fusion Builder.
Step 3 – Insert a Container into the page and then choose a column layout.
Step 4 – Click the 『+ Element』 button to bring up the Elements window. Locate the Image Element and click to add it to the page. Alternatively, just search for 『Image』 and the Image Element will be filtered for your selection.
Step 4 – Insert an image using the 『Image』 option, and set the 『Image Lightbox』 option to Yes. If you』d like to set a different lightbox image, assign one using the 『Lightbox Image』 option.
Step 5 – Configure the Image Element. You can adjust options such as the border, alignment, hover type, and animations.
Step 6 – Add more Image Elements by repeating Steps 4 – 5. If you』d like to retain the styling options you』ve chosen previously, then simply click the 『Clone Element』 icon on the first Image Element, and then only change the assigned image.
The 『Gallery ID』 OptionStep 1 – Once you』ve added all your Image Elements, you can start determining which Image Elements you』d like to add to your Lightbox gallery.
Step 2 – Edit the Image Element you want to add to the Lightbox gallery and locate the 『Gallery ID』 option. To this option, insert a unique gallery ID. For example, TravelGallery.
Step 3 – Keep repeating Step 2 until you』ve added your unique gallery ID to all the Image Elements that will be displayed in the Lightbox gallery. You can add the gallery ID to as many Image Elements as you wish.
Step 4 – Click 『Save Draft』 or 『Publish』 to save your changes.

Licensing For Stock Images & Videos Used In Avada Prebuilt Websites

Licensing For Stock Images & Videos Used In Avada Prebuilt Websites

The licensing for Avada does NOT include the images or videos used in the Prebuilt Websites or the Avada Studio content blocks. With Avada Studio, we have sourced the images used from free sources, but it is still the user』s responsibility to ensure that all images are being used according to their copyright status.
Avada Studio ContentFollow the link below to see an extensive list of the media resources used in Avada Studio. From here, you can check the copyright status and conditions of the specific images in question. Please note, the sources have dates next to them as image website listings can change, and this list will not be maintained/updated by us.
Avada Studio Resource List,Prebuilt WebsitesOur prebuiilt websites use a variety of both paid and free stock images and videos, and below we have a list of resources that can help you source either free or paid stock images for your site. Always make sure you read the details of each resource to fully understand the license it comes with.
General Stock PhotosShutterstock.com – PAIDPhotodune.com – PAIDUnSplash.com – FREEPexels.com – FREEPixabay.com – FREEFreeimages.red.com – FREEDribble.com – FREEKaboompics.com – FREEFreeimages.red.com – FREEPicJumbo.com – FREEPhotos.Oliur.com – FREEStocksnap.io – FREESplitshire.com – FREEStreetwill.co – FREEStock VideosShutterstock.com – PAIDVideohive.com – PAIDCoverr.co – FREEGraphics & MockupsGraphicriver.com – PAIDPixeden.com – FREE & PAID

How Avada Controls Responsive Images

How Avada Controls Responsive Images

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, but now with Avada 5.8, we have introduced several performance related features specifically for how Avada handles images. Let』s have a look at this!
WordPress & srcsetTo 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 handing, 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 Clipboardsrcset="{image_name} {image_size}, {image_name} {image_size} ..." 1srcset="{image_name} {image_size}, {image_name} {image_size} ..."Example
Copy to Clipboardsrcset="test_image-200.jpg 200px, test_image-400.jpg 400px, test_image-800px.jpg 800px"1 1srcset="test_image-200.jpg 200px, test_image-400.jpg 400px, test_image-800px.jpg 800px"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 Clipboardsizes="{media_query} {best_image_size}, {media_query} {best_image_size} ..."1 1sizes="{media_query} {best_image_size}, {media_query} {best_image_size} ..."Example
Copy to Clipboardsizes="(min-width: 2200px) 100vw, (min-width: 824px) 270px, (min-width: 732px) 405px, (min-width: 640px) 732px"1 1sizes="(min-width: 2200px) 100vw, (min-width: 824px) 270px, (min-width: 732px) 405px, (min-width: 640px) 732px"Browser AlgorithmNow 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 AdditionsIn 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.
Lazy LoadIn Avada 5.8, we have also introduced Lazy Load for images. This can be enabled under the Performance tab at Avada > Theme 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 on 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
Responsive ImagesApart 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 Optimisation Guide for more info.

Using SVG in Avada

Using SVG in Avada

Scalable Vector Graphics (SVG) files can be selected and used in Avada as regular images, logos, icons, and more. SVG files are scalable, usually much smaller in file size, and can also be animated using CSS. For more information on SVG files, please follow this link.
IMPORTANT NOTE: Please keep in mind that for SVG to work properly in the Logo and other Global Option areas, you will have to set the width and height dimensions in the file itself, before you upload it. If there are no dimensions set on the SVG itself, then it will not appear.For use in content areas, if you prefer, you can use CSS to size any SVGs.
Please see below for the various aspects of SVG creation and usage.
Creating an SVG Logo with Adobe IllustratorStep 1: Open Adobe Illustrator & Create a New Project
To create an SVG file, we need to use a program that can create and manipulate vector artwork. The industry standard for this is Adobe Illustrator.
Step 2: Create Your Icon or Artwork
On your new project canvas in Adobe Illustrator, create your desired artwork or icon, then resize the artboard to fit the size of your icon/artwork or resize your icon/artwork to fit the size of your artboard, either one is fine. Ensure the artboard is slightly larger on all sides than your icon/artwork.
Step 3: Create Artwork Outlines
The next step is to create outlines of your artwork. To do this, with your icon/artwork highlighted drag a rectangle around your entire canvas, right click, and click on Create Outlines.
Step 4: Combine Your Outlines Into A Single Shape
The next step is to combine your outlines into a single shape, you can do this by navigating to the Pathfinder window in Adobe Illustrator, with all of your outlines selected (you can use the same method as Step 3, drag a rectangle around it all with your mouse), click on the 「Combine Shapes」 Shape mode in the pathfinder window. Under the Shape Modes: Heading it』s the first icon on the left.
Step 5:  Save / Export As SVG
Finally, now your artwork is created, sized, outlined and combined, you can export it as a Scalable Vector Graphic (SVG). Depending on your version of Illustrator, the saving method will be different. For Adobe Illustrator CC,  choose File > Export > SVG  (read more at Adobe』s Support Site). In previous versions of Adobe Illustrator, navigate to File > Save As and select SVG. Note: You can save with all of the default settings.
Resizing an SVG file in the codeStep 1: Open the SVG file in a text editor
An SVG file is just code. Open the file in your chosen text editor.
Step 2: Locate and edit the dimensions
Towards the top of the code, you will see the pixel dimensions to display the svg at. Change these to your desired size, remembering to keep the aspect ratio the same as the original file.
Step 3: Save your file
Step 4: Upload your file
Now you can upload the svg directly into your media library, and use the file path from there.
Adding an SVG via the Code Block ElementStep 1: Accessing the SVG Code
Take your .SVG file and open it up in your preferred code editor. This will show you all of the code that makes up your SVG.
Step 2: Adding the SVG Code to your Avada Website
Select all of the code from your code editor, copy it and then paste it into a Code Block element on your Avada website. Save the Element.
Step 3: All done!
The SVG you created is now visible on your website wherever you』d like it to be thanks to the Avada Code Block element. No uploading of files is required for this method. It』s what』s known as an inline SVG.
Styling an SVG with CSSSVGs are just like any other element, and can be styled just like any other HTML element.
For example, this is a 50px black circle:
Copy to Clipboard

 12 3 4 5If you add a class to the svg tag, you can then target the class and write CSS to do whatever you want with it:
Copy to Clipboard.my-custom-icon {
width: 150px;
height: 150px;
}
.my-custom-icon circle {
fill: #c00;
}7 1.my-custom-icon {2 width: 150px;3 height: 150px;4}5.my-custom-icon circle {6 fill: #c00;7}And just like other HTML elements, you can write your CSS inline, so instead of you can define dimension like:
Copy to Clipboard

3 12 3

How Background Images Work in Avada

How Background Images Work in Avada

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 ImagesWhen 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).
ExampleLet』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, and that the container height is exactly 800px, either through content, or padding. In this case the image displays 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 750px, and so grows slightly to the width of the site layout (in this case 1300px) 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.
767,645 Businesses Trust Avada
Get Avada767,645 Businesses Trust Avada
Get Avada767,645 Businesses Trust Avada
Get Avada,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.,100% Width TemplateThings 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.
ExampleHere』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.,Column Background ImagesColumns 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 1300px, 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.
ExamplesOn the left hand side, the column has simply been resized to 1/2. The image remains full size, 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.

Using Videos in Avada

Using Videos in Avada

As Internet speeds increase, videos are increasingly common on websites, and they can make a site dynamic and more interesting than a static page.  With Avada, we offer a wide range of options for adding videos into your website, including YouTube, Vimeo and self-hosted videos.
Generally, YouTube and Vimeo videos are more commonly used, as these are not served directly from your server, and so don』t affect your bandwidth, but self-hosted videos, despite thier potential for affecting page load speed and server bandwidth, can also be used in clever ways in Avada, and should not be ruled out.
This article looks at the various ways videos can be used in Avada. Read on!
Where Can I Use Videos In Avada?
Videos In Sliders

Videos As Container Backgrounds

Videos in A Lightbox

Video Elements

Some Examples,Videos In SlidersAll major sliders that ship with Avada support videos, including Avada Slider, Slider Revolution & Layer Slider.
Each slider will, of course, have a different process for adding videos, but all three support YouTube, Vimeo, and self-hosted videos. You can use any video type in a slider, but this is generally where self-hosted videos come into their own. The most appropriate videos for sliders are often small background videos that are muted, autoplay upon load, and with no controls. YouTube and Vimeo videos often have overlays and ads etc, so it』s here a small self hosted video fits the bill.

Avada Slider – Avada Slider is Theme-Fusion』s own slider, and supports a full range of video backgrounds. Please see the Avada Slider Background Type Options for more information on how to add videos to your Avada Slider slides.

SliderRevolution – SliderRevolution supports all three types of videos for slide backgrounds. See our Slider Revolution Documentation for more information. There are also a wealth of tutorials on the Internet if you need help to create your SliderRevolution sliders, and a good place to start is the ThemePunch Support Center.

LayerSlider – LayerSlider uses video layers which also support YouTube, Vimeo and HTML 5 video. Please see our Layer Slider documentation, or the Kreatura LayerSlider Documentation for further information.,Videos As Container BackgroundsYou can also use videos as Container backgrounds, through the Container > BG > Video tab. Again, these are best as background videos, rather than feature videos, as the container dimensions may not fit the video size and content will likely be placed above the video in the container and its column/s.
For more details on the Container Backgorund tabs, including the video tab, please see the How To Use Container & Column Background Options doc and video.
767,650 Businesses Trust Avada
Get Avada767,650 Businesses Trust Avada
Get Avada767,650 Businesses Trust Avada
Get Avada,Videos In A LightboxVideos can also be opened in a Lightbox, in a variety of ways. You can of course use the Lightbox Element, which we will cover below, in the Elements section, but you can also trigger a video in a Lightbox from a Column.
Editing any Column, you will find the Link URL field and the Link Target field, directly below this. Simply add your video URL in the Link URL field, and set the Link Target Field to Lightbox. The whole column then becomes a link, and clicking on it briings the video up in a Lightbox, ready to play.,Useful Elements for VideosThere are 3 Video Elements in Avada, as well as a number of elements that can be used to trigger or display videos.

Video Element – this is for self-hosted videos. This is new in Avada 6.1, and offers a range of options for both video format and layout options.

Vimeo Element – easily add Vimeo videos to your content. There are dimension and alignment options, as well as autoplay and additional API paremeter options.

YouTube Element – easily add YouTube videos to your content. There are dimension and alignment options, as well as autoplay and additional API paremeter options.

Lightbox Element – The Lightbox Element has a Video Content type, and when this is selected, you can add any video URL here, as well as control a thumbnail, title and description. This is an easy and stylish way to play a video in a  Lightbox.

Button Element – You can also trigger a video in a Lightbox from the Button Element. Simply ass the Video URL in the Button URL field, and select Lightbox as the Button Target.

Modal Element – You can add a video to a Modal dialog as its content, by adding another video based element, like the YouTube Element, into the Contents of Modal field, through the Avada Shortcode generator, when editing the Modal Element.,Some ExamplesClick To Open Video!Click Me To Open Video! Video in a Lightbox Element
Video in a Lightbox, being triggered from a Column
Video in a Lightbox, being triggered by a Button
Sorry, your browser doesn't support embedded videos.Click Me To Open Video in Modal!Self-hosted Video in a Video Element with 5px border radius.
YouTube Video in a YouTube Element
Self-Hosted Video opening in a Modal

How To Change Image Sizes in Child Themes

How To Change Image Sizes in Child Themes

More About Child ThemesView The WordPress Codex DocsLocate Current Image SizesBefore you can modify your image sizes in your child theme, you must first locate them in the files so you know the exact image slug to target. The add_image_size() functions are located in two files:
Avada -> wp-content/themes/Avada/includes/class-avada-init.php
Fusion Core -> wp-content/plugins/fusion-core/includes/class-fusion-portfolio.php
To easily locate this, just do a text search in the file for add_image_size.
Once you』ve found the image size function, you can copy out the image size slug that you』re wanting to modify, for use in your child theme』s function.
Note: The 「portfolio-five」 image size is used for not only the five column portfolio layout, but is also used in the Recent Posts element』s 「Thumbnail on Side」 layout.
Avada -> wp-content/themes/Avada/includes/class-avada-init.php
Copy to Clipboard/**
* Add image sizes.
*
* @access public
*/
public function add_image_size() {
add_image_size( 'blog-large', 669, 272, true );
add_image_size( 'blog-medium', 320, 202, true );
add_image_size( 'recent-posts', 700, 441, true );
add_image_size( 'recent-works-thumbnail', 66, 66, true );

// Image sizes used for grid layouts.
add_image_size( 'fusion-200', 200, '', false );
add_image_size( 'fusion-400', 400, '', false );
add_image_size( 'fusion-600', 600, '', false );
add_image_size( 'fusion-800', 800, '', false );
add_image_size( 'fusion-1200', 1200, '', false );
} 1/**2 * Add image sizes.3 *4 * @access public5 */6public function add_image_size() {7 add_image_size( 'blog-large', 669, 272, true );8 add_image_size( 'blog-medium', 320, 202, true );9 add_image_size( 'recent-posts', 700, 441, true );10 add_image_size( 'recent-works-thumbnail', 66, 66, true );11 12 // Image sizes used for grid layouts.13 add_image_size( 'fusion-200', 200, '', false );14 add_image_size( 'fusion-400', 400, '', false );15 add_image_size( 'fusion-600', 600, '', false );16 add_image_size( 'fusion-800', 800, '', false );17 add_image_size( 'fusion-1200', 1200, '', false );18}Fusion Core -> wp-content/plugins/fusion-core/includes/class-fusion-portfolio.php
Copy to Clipboard/**
* Add image sizes.
*
* @access public
*/
public function add_image_size() {
add_image_size( 'portfolio-full', 940, 400, true );
add_image_size( 'portfolio-one', 540, 272, true );
add_image_size( 'portfolio-two', 460, 295, true );
add_image_size( 'portfolio-three', 300, 214, true );
add_image_size( 'portfolio-five', 177, 142, true );
}12 1/**2 * Add image sizes.3 *4 * @access public5 */6public function add_image_size() {7 add_image_size( 'portfolio-full', 940, 400, true );8 add_image_size( 'portfolio-one', 540, 272, true );9 add_image_size( 'portfolio-two', 460, 295, true );10 add_image_size( 'portfolio-three', 300, 214, true );11 add_image_size( 'portfolio-five', 177, 142, true );12}Modify Your Child ThemeNow that you have the slug for the image size you would like to change, it』s time to move to your child theme.
Step 1 – Go into your child theme folder and open the functions.php file. If you don』t have this file, simply create one with the same filename.
Step 2 – At the very bottom, add this action:
Copy to Clipboardadd_action( 'after_setup_theme', 'my_child_theme_image_size', 20 );
function my_child_theme_image_size() {
remove_image_size( 'blog-large' );
add_image_size( 'blog-large', 1000, 500, true );
}xxxxxxxxxx5 1add_action( 'after_setup_theme', 'my_child_theme_image_size', 20 );2function my_child_theme_image_size() {3 remove_image_size( 'blog-large' ); 4 add_image_size( 'blog-large', 1000, 500, true );5}Step 3 – Replace the value 『blog-large』 inside remove_image_size( 『blog-large』 ); with the image slug of your desired image size.
Step 4 – In add_image_size( 『blog-large』, width, height, true ); , replace the values with the exact same image slug and add your desired width and height values respectively. For example,
Copy to Clipboard'blog-large', 1000, 500xxxxxxxxxx 'blog-large', 1000, 500Step 5 – If you』d like to change more than one image size, copy these actions and paste them inside the same my_child_theme_image_size() function and change the necessary values accordingly:
Copy to Clipboardremove_image_size( 'blog-large' );
add_image_size( 'blog-large', 1000, 500, true );xxxxxxxxxx remove_image_size( 'blog-large' ); add_image_size( 'blog-large', 1000, 500, true );Step 6 – If needed, run the Force Regenerate Thumbnails plugin to regenerate your thumbnails.

How To Reduce Image Size Generation

How To Reduce Image Size Generation

More About Child ThemesView The WordPress Codex DocsThe Avada theme generates image sizes for the most important areas, so that images of appropriate sizes can be loaded on the frontend instead of always loading the full image size. It may seem like a lot of images, but this reduces loading time considerably on the front end for your viewers. We feel the performance increase is well worth the extra image files. If you would like to change this to suit your needs however, please read the information below.
Locate Current Image SizesBefore you can reduce your image sizes in your child theme, you must first locate them in the files so you know the exact image slug to target. The add_image_size() functions are located in two files:
Avada -> wp-content/themes/Avada/includes/class-avada-init.php
Avada Core -> wp-content/plugins/fusion-core/includes/class-fusion-portfolio.php
To easily locate this, just do a text search in the file for add_image_size.
Once you』ve found the image size function, you can copy out the image size slug that you』re wanting to remove, for use in your child theme』s function.
Note: The 「portfolio-five」 image size is used for not only the five column portfolio layout, but is also used in the Recent Posts element』s 「Thumbnail on Side」 layout.
Avada -> wp-content/themes/Avada/includes/class-avada-init.php
Copy to Clipboard/**
* Add image sizes.
*
* @access public
*/
public function add_image_size() {
add_image_size( 'blog-large', 669, 272, true );
add_image_size( 'blog-medium', 320, 202, true );
add_image_size( 'recent-posts', 700, 441, true );
add_image_size( 'recent-works-thumbnail', 66, 66, true );

// Image sizes used for grid layouts.
add_image_size( 'fusion-200', 200, '', false );
add_image_size( 'fusion-400', 400, '', false );
add_image_size( 'fusion-600', 600, '', false );
add_image_size( 'fusion-800', 800, '', false );
add_image_size( 'fusion-1200', 1200, '', false );
} 1/**2 * Add image sizes.3 *4 * @access public5 */6public function add_image_size() {7 add_image_size( 'blog-large', 669, 272, true );8 add_image_size( 'blog-medium', 320, 202, true );9 add_image_size( 'recent-posts', 700, 441, true );10 add_image_size( 'recent-works-thumbnail', 66, 66, true );11 12 // Image sizes used for grid layouts.13 add_image_size( 'fusion-200', 200, '', false );14 add_image_size( 'fusion-400', 400, '', false );15 add_image_size( 'fusion-600', 600, '', false );16 add_image_size( 'fusion-800', 800, '', false );17 add_image_size( 'fusion-1200', 1200, '', false );18}Avada Core -> wp-content/plugins/fusion-core/includes/class-fusion-portfolio.php
Copy to Clipboard/**
* Add image sizes.
*
* @access public
*/
public function add_image_size() {
add_image_size( 'portfolio-full', 940, 400, true );
add_image_size( 'portfolio-one', 540, 272, true );
add_image_size( 'portfolio-two', 460, 295, true );
add_image_size( 'portfolio-three', 300, 214, true );
add_image_size( 'portfolio-five', 177, 142, true );
}12 1/**2 * Add image sizes.3 *4 * @access public5 */6public function add_image_size() {7 add_image_size( 'portfolio-full', 940, 400, true );8 add_image_size( 'portfolio-one', 540, 272, true );9 add_image_size( 'portfolio-two', 460, 295, true );10 add_image_size( 'portfolio-three', 300, 214, true );11 add_image_size( 'portfolio-five', 177, 142, true );12}Modify Your Child ThemeNow that you have the slug for the image size you would like to remove, it』s time to move to your child theme.
Step 1 – Go into your child theme folder and open the functions.php file. If you don』t have this file, simply create one with the same filename.
Step 2 – At the very bottom, add this action:
Copy to Clipboardadd_action( 'init', 'my_custom_remove_image_size' );
function my_custom_remove_image_size() {
remove_image_size( 'blog-large' );
}xxxxxxxxxx4 1add_action( 'init', 'my_custom_remove_image_size' );2function my_custom_remove_image_size() {3  remove_image_size( 'blog-large' ); 4}Step 3 – Replace the value 『blog-large』 inside remove_image_size( 『blog-large』 ); with the image slug of your desired image size.
Step 4 – If you』d like to remove more than one image sizes, copy this action and paste it inside the same my_custom_remove_image_size() function and change the necessary value accordingly:
Copy to Clipboardremove_image_size( 'blog-large' );xxxxxxxxxx remove_image_size( 'blog-large' );Step 6 – If needed, run the Force Regenerate Thumbnails plugin to regenerate your thumbnails.