Video Block
Play a video from your local library or YouTube.
Quick links
Overview
In the Gutenberg editor, open the block section and click or drag the Video Block to the editor area. Main elements of the block are:
- Subtitle
- Title
- Paragraph
- Video player
Note: Because of the frequency of use, the first three elements (Subtitle, title and paragraph) of the Text Block are integrated in almost every Sana block.
Settings
If the settings side panel is not visible while working on your page or post, click on the Settings icon in the top left corner of the editor toolbar. Once opened you will see all the available options of the selected block, organized into collapsible tabs.
General
- Content Align – Align the entire block content left, center or right
- Padding – Add top and bottom block padding
- Background – Choose a solid color or a background image
Note: Content Align positions containers within the block, while Text Align positions text within its own container.
Subtitle, Title, Paragraph
- On/Off toggle – Display or hide the element
- Text Align – Align text left, center or right within its own container
- Font Size – Choose from nine preset sizes or add a custom font size
- Text Color – Select a color for the subtitle, title and paragraph
Video
- Autoplay – Play the video automatically when in view
- Loop – Play the video continuously
- Show Controls – Display the player controls on the bottom of the video
- Size – Percentage of container width that the video occupies
- Full width on Mobile – Video has a 100% width on mobile screens
- Poster Image – Set a cover image that is visible before the video plays
- Player Colors – Choose a Primary (buttons, timeline) and secondary (background) color
- Shadow – Add a background shadow to the video
Responsive
- Hide on Desktop – Block is visible on mobile, but not on desktop screens
- Hide on Mobile – Block is visible on desktop, but not on mobile screens
Tip: You can create two separate blocks for a section of your page and load each block on a different screen size.