Dailymotion is a video-sharing platform. Using the Dailymotion Embed block includes a Dailymotion video into your post/page with play buttons, so your visitor can stay on your site to watch it. You don’t need a Dailymotion account to embed posts.
Embedding a Dailymotion video in your post or page
- Locate your video and copy the URL from Dailymotion.com in the browser bar
- Add a Dailymotion Embed block to your post
Adding a block via the “Slash” command from an empty row
Detailed instructions on adding blocks can be found here.
- Paste the track link into the text box
You’ll see your video in block editor, with the option to write a caption under.
- Click the “Embed” button
If it’s a link that can be successfully embedded you will see a preview in your editor.
If you use a URL that can’t be embedded, the block shows the message “Sorry, this content could not be embedded.” You will have two choices: Try again with a different URL or convert to link.
Besides the Mover and Drag & Drop Handle, the Block Toolbar for the Dailymotion embed shows four buttons:
- Change block type or style
- Change alignment
- Edit URL, and
- More Options.
You can transform a Dailymotion embed to a Group. This would give you the ability to change the background color around the Dailymotion embed.
Editor view of an Dailymotion Embed as a group with Color Settings controls
Dailymotion embed with a blue background.
Change Alignment – use reusable Block
- Align left – Make the Dailymotion post left aligned
- Align center – Make the Dailymotion post alignment centered
- Align right – Make the Dailymotion post align right
- Wide width – Increase the width of the post beyond the content size
- Full width – extend the Dailymotion post to cover the full width of the screen.
“Wide width” and “Full width” alignment need to be enabled by the Theme of your site.
Via the edit URL, you can change the Dailymotion Embed URL in the embed block. Overwrite the existing URL and click on the “Embed” Button.
Hide Block Settings
The Hide Block Settings option hides (or shows) the Block Setting panel in the editor’s sidebar.
Copy can be used to copy a selected block and then you can paste it wherever you want in the editor.
Duplicate can be used to duplicate selected block.
Insert a new block before the selected block(s).
Insert a new block after the selected block(s).
If you select Move To, you will get a blue line inside your content, you can then use the arrows to move that line up and down to where you want the selected content to be moved into, hitting return on your keyboard at that point moves the block to that position.
Edit as HTML
The Edit as HTML option allows you to modify the HTML code of the embed block.
Add to Reusable blocks
Using the Add to Reusable blocks option lets you add the selected block to a list of reusable blocks, so you can use them on other posts or pages as well.
Select the Group option if you want to create a group of blocks and treat them as a unit. You can for instance add a common background color or other blocks to the group.
With the Remove Block option, you can delete the selected block from your content.
Besides the Advanced section, the Dailymotion embed has only one setting in the “Block Settings” sidebar: Media Settings.
Via the Media Settings you can control the behavior of your post embed when viewed from a smaller device, like on a phone screen.
The Toggle switch turns on or off the resize functionality for smaller devices. The default setting is “on” or blue.
“Off:” This embed may not preserve its aspect ratio when the browser is resized. In the off position the toggle switch is gray.
“On:” This embed will preserve its aspect ratio when the browser is resized. The toggle switch turns blue in the “On” position.
The advanced tab lets you add a CSS class to your block, allowing you to write custom CSS and style the block as you see fit.
The advanced section lets you add a CSS class to your block.
For a Dailymotionembed there are default CSS classes to allow for responsive handling of the embed when viewed on smaller devices like mobile phones.
この記事は役に立ちましたか ? どうすればさらに改善できますか ?