Multi-Layer Backgrounds
Multi-Layer Backgrounds enables you to add multiple backgrounds to an individual row, column, or Box module.
Background Typesβ
You can choose from three background types: Color, Photo, and Gradient. Other background types, such as video, are not available because videos cannot be added as a background using CSS.
Please note that Field Connections and Global Colors are not currently supported.
Colorβ
The Color background type applies a solid color to the entire row, column, or Box module. You can use the color picker to quickly adjust the color. The background color is then applied using CSS.
See the Color Picker article for more infomration.
Gradientβ
The Gradient background type applies a CSS gradient effect to the entire row, column, or Box module. You can add multiple gradient colors to create unique gradient combinations.
Adding Gradient Colors
When you open the gradient color picker, it includes two preset color stop items by default, giving you a basic gradient to work with. To change a color in the gradient:
- Click on one of the color stop items in the gradient range control (the bar showing the gradient).
- The color swtch will update to show the color of the selected color stop.
- Click the color swatch to open the color picker.
- Choose your preferred color from the picker. Once selected, the gradient updates automatically.
- Repeat these steps to change the other color in the gradient.
Adding More Colors
You can add more color stops to the gradient:
- Click anywhere on the gradient range control where there isnβt already a color stop item.
- A new color stop item will appear at that spot.
- Click the new color stop item, then the color swatch, and use the color picker to choose a color for it.
Adjusting the Gradient
You can drag the color stop items left or right to adjust the position of each color in the gradient.
Delete a Gradient Item
If you want to remove a color from the gradient:
- Click the gradient color swatch item you want to delete.
- Click the Trash button to the right-hand side of the color swatch.
Distribute Gradient Items
If your gradient has multiple color stops, you can easily distribute them evenly across the gradient. Simply click the Distribute button, and all color stops will be spaced out evenly.
This feature is especially helpful when working with several color stops and aiming for a balanced look. After distributing, you can still fine-tune the colors and positions to achieve your desired gradient effect.
Photoβ
The Photo background type applies an image to the entire row, column, or Box module. You can choose images from the WordPress media library, a URL, or an SVG using SVG code.
The Photo background type offers the following options:
WordPress Media Library
- Select Image - The Select Image button allows you to choose an image from the WordPress media library.
- WordPress Image Size - Choose the WordPress media image size to use. You can choose from the default thumbnail, medium, large, or full size and any custom image size you have added.
- Replace - Allows you to select a different image from the WordPress Media Library to replace the current background image.
- Remove - Remove the image from the background.
URL
- URL - Enter or paste the URL of the image you want to use into the URL field.
SVG
SVG Code - Enter or paste the SVG code into the SVG Code field for the SVG you want to use. For best results, use simple SVG code, such as:
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
<circle cx="50" cy="50" r="40" fill="blue" />
</svg>
Background Properties
The background properties for repeat, position, size and clip to are available for all Photo options (WordPress Media Library, URL, and SVG).
- Repeat - Choose whether to repeat the image or not.
- Position - Choose the position of the image.
- Size - Choose the size of the image, either default, cover, or contain.
- Clip To - Choose whether to clip the image to the background or not.
Using Multiple Backgroundsβ
You can add as many background types as you like in any order and combination. To add multiple backgrounds to a row, column, or box module:
- Open a row, column, or Box module for editing.
- Navigate to the Background section and choose the Multiple Backgrounds option.
- Click the + icon to add a background type and select the one you want to add (color, photo, or gradient).
- Configure the background settings.
- Click the + icon again to add another background type.
- Repeat steps 3 and 4 for each background type you want to add.
- Click Save to save your changes.
Background Layer Orderβ
The order in which background types are displayed on the page is determined by the order in which you add them to the Multi-layer Backgrounds option. The first background type added appears on top of the background, and the last background type added appears on the bottom.
For example, if you add a color type first and a photo second, the photo background will appear behind the color background and isn't visible. In order to see the photo behind the color background, you must reduce the background color alpha value.
Reorder Background Typesβ
You can change the order of the background types any way you like. To reorder the background types, click and drag them up or down the list to the desired positions.
Duplicating Background Typesβ
To duplicate a background type, click the Duplicate icon to the right of the background type you want to duplicate.
Remove Background Typesβ
You can also remove a background type by clicking the Trash icon to the right of the background type you want to remove.