Video And Text
Video And Text
Display a video using the Dirigible Blocks format.
The Video and Text block is a parent container that uses the Dirigible Blocks UX pattern. The first block, however, is a WordPress core Video block rather than a standard Dirigible Blocks child. For more information about either of these blocks, refer to their respective documentation.
To access the parent level controls listed on this page, make sure you have the parent block selected. If you need help selected the parent block, we’ve got you covered.
The Gutenberg core Video block is pretty great and has a bunch of settings. We like to use a lot of looping videos, so here’s a quick cheat sheet showing the settings we use to make them.
Note: Some browsers will not autoplay videos unless it is also muted. This is a good thing. Blasting your users with audio the moment they get to your site is a good way to get them to leave (or to transport them back to 1999).
Change the size of your blocks.
Adjusting the size of your Dirigible Blocks
The sizing option will change the size of blocks on desktop. This is independent from the Swap Blocks setting, which means that even if you toggle the Swap Blocks option, if the left block is set to be larger, the leftmost block will always be the larger one regardless of which one is being presented on the left.
The default setting makes each block evenly sized (50%). With either of the other two options selected, the sizes are based on the golden ratio, with the larger block set to 61.8% and the smaller block set to 38.2%.
Change the order of the blocks on desktop.
The Swap Blocks setting is used to change the order of the blocks on desktop.
This is an important distinction and can be used to control the flow of your website on mobile, giving your users the best mobile experience possible.
For example, if you’d like to alternate blocks with photo backgrounds on desktop but want the accompanying content to be displayed under the photo on mobile, you would create the blocks in the editor with the leftmost block as the photo background and the rightmost block as the content block. This way, they will stack on mobile, left first then right. Then, selecting Swap Blocks on every other Dirigible Blocks group.
Example mobile stacking.
The same blocks viewed on desktop. In this example, the second Dirigible Blocks group has Swap Blocks enabled.