Use the Videas plugin for WordPress
To show your Videas media on a WordPress site: install the Videas plugin, click Connect with Videas and approve the connection, then add a Videas block to a page and pick your media from your library. No code to copy, no key to paste.
Coming soon. The Videas plugin for WordPress is coming very soon to the official WordPress plugin directory. This guide already shows how it works; you can install it as soon as it is published.
What the plugin does
The plugin adds a Videas block and a [videas] shortcode to WordPress. From the editor, you browse your Videas organization’s library and insert:
- a video, an audio, an image or a PDF document;
- a Videas collection (videos, audio, images or documents), with its own layout;
- a widget: several videos, audio tracks or images brought together in a grid, a carousel, a mosaic, a list…
You can also upload a file to Videas without leaving WordPress. The media is played by the Videas player, with the same analytics and the same protections as an embed code pasted by hand: the plugin simply spares you copying it.
What you need
- WordPress 6.4 or later, and PHP 8.1 or later;
- the site’s administration served over HTTPS (only
localhostis accepted over HTTP, for development); - a Videas account that can grant access to the organization: owner or administrator;
- an administrator account on the WordPress site, to install the plugin and connect it.
Install the plugin
Coming soon: the plugin can be installed from the WordPress directory as soon as it is published. The steps below will then apply as they are.
From the WordPress plugin directory:
- In the WordPress admin, open Plugins › Add New Plugin
- Search for “Videas”
- On the Videas plugin’s card, click Install Now, then Activate
From the zip file:
- Open Plugins › Add New Plugin, then click Upload Plugin
- Choose the plugin’s
.zipfile and click Install Now - Click Activate Plugin
Once the plugin is active, a Videas menu appears in the admin sidebar. It is the plugin’s home page.
Connect your Videas account
Until the site is connected, the Videas page explains what the plugin does and offers a single button: Connect with Videas. If you do not have an account yet, the Try Videas link opens the sign-up; Read the guide opens this article.
- Click Connect with Videas
- Videas opens. Sign in if needed: the page says that WordPress is asking for access to your organization, from your site’s address
- Check that address: only approve if you have just arrived from your own site
- Check the list What this integration will be able to do and, if you belong to several organizations, pick the right one under Grant inside
- Confirm it is you (password, plus an authentication code if your account asks for one), then click Approve
- Videas sends you back to the Videas page in WordPress, which shows Connected to followed by your organization’s name
You have 10 minutes to approve: after that, the request expires and you have to start the connection again from WordPress.
There is no key to copy. Videas creates a dedicated access key for this site, limited to three actions: browsing the library, embedding its media and uploading files to it. It is stored encrypted on your server and never sent to your visitors’ browsers. The organization’s owners receive an email announcing the connection, with a link to remove it.
This key is revocable at any time: from WordPress by disconnecting the site (see below), or from Videas, in Settings › API Access, where it is listed as granted to WordPress.
If the access is incomplete
If one of the three permissions was not granted — or is not switched on for your organization yet —, the site still connects, but WordPress says so: the bottom of the Videas page names the missing permission, in a warning colour, and the actions that depend on it are not offered. In the editor, the message reads for instance:
This site’s Videas connection does not allow uploading media (assets.library.upload). An administrator can grant it: disconnect in the Videas settings, then connect again and keep that permission checked.
To complete the access, disconnect the site, then connect it again and approve every permission.
The site must be served over HTTPS
Videas only sends the connection’s answer back to an administration served over HTTPS. On a site served over plain HTTP, the connection stops with this message:
Videas only connects a site whose administration is served over HTTPS (plain HTTP is accepted on localhost alone). If a proxy terminates HTTPS in front of this site, define FORCE_SSL_ADMIN in wp-config.php.
If your site does run on HTTPS but behind a proxy or a load balancer that handles the certificate, WordPress may not know it: add define( 'FORCE_SSL_ADMIN', true ); to wp-config.php, then start the connection again.
Insert a media with the Videas block
Once connected, the Videas page offers four shortcuts: Create a page with Videas (a new page that opens straight on the media picker), Upload a media, Open my library (Videas, in a new tab) and Plugin guide.
In any page or post:
- Type
/videasin the editor and pick the Videas block (or look for it with the + button) - The block offers two choices: Choose a media or Create a widget
- Click Choose a media: the Choose a Videas media window opens
Find the media
- The left column lists All media, then each workspace and its folders.
- The filters at the top — All, Videos, Audio, Images, PDF and documents, Collections — show how many media of each type there are.
- The Search… field searches the library (it is not available on the Collections filter).
- Load more, at the bottom, shows the rest of the list.
A badge flags a media that is not ready yet: Processing (Videas is still preparing it), Awaiting credit or Error.
Upload a file
The Upload button sends a file from your computer to Videas. The file goes straight from your browser to Videas, without passing through your WordPress server; its progress is shown (“Upload in progress…”). It is filed in the workspace selected on the left — or the selected folder’s workspace, otherwise the first workspace. The list then opens on that workspace, where the new media appears, often still Processing.
Insert
Click the media, then Insert media — or double-click it. The player appears in the editor. For a collection, pick it the same way, from the Collections filter.
To change the media later, click Replace media in the block’s toolbar, or Replace in the Media panel of the right-hand column. The Open in Videas link, in the same place, opens the media’s player in a new tab.
Set the display
The block’s settings are in the editor’s right-hand column (the Settings button if it is closed). Only the settings that make sense for the media’s type are shown.
In the page or in a window
In the Display panel, the Mode field offers:
- Inline: the player shows in the page, where the block is;
- Popover: the page only shows a trigger, and the player opens over the page on click.
In Popover mode, choose the Trigger:
- Button, with its Button label (left empty, it says “Watch the video”, “Listen”, “Open the document” or “View the images” depending on the media);
- Thumbnail: the media’s thumbnail, with its title and duration, which you can hide with Show the title on the thumbnail and Show the duration on the thumbnail. This choice is not available for a media that has no thumbnail in Videas;
- Card, for an audio: its cover, title and duration.
Format, width and alignment
- Aspect ratio: 16, 9, 1 or 4. A vertical video (9) left at the default width stops at a phone’s width, centred.
- Width: for example
100%(the default, the whole column) or640px. - Alignment is set in the block’s toolbar, as for any WordPress block: left, centre, right, wide or full width.
An image on its own shows as an image: only the width and the alignment apply.
Colour and theme
The Style panel offers:
- Theme: Default, Light, Dark or Colourful — the default depends on the media: dark for video, colourful for audio;
- Accent colour: the player’s colour, and the trigger’s in popover mode. Pick one of the suggested shades or your own; leave it empty for the Videas default colour.
Playback
The Playback panel brings together, depending on the media’s type: Autoplay, Start muted, Loop playback, Show controls and Captions on by default.
Autoplay does not appear in Popover mode nor in a widget: the player starts on its own when the visitor opens it. In the page, keep Start muted on with autoplay: browsers block autoplay with sound.
Collections
A collection has its own Collection panel, with a Layout suited to its content:
- videos: Drawer (the list opens over the player), Bottom bar or Sidebar; plus Play the next item automatically and Shuffle the order;
- audio: Full (waveform and track list), Track list or Compact;
- images: Slideshow (advances on its own, with Seconds per image) or Gallery; plus Allow zooming;
- depending on the type, Allow downloading and Allow fullscreen.
Build a widget
A widget brings several media of the same type together in a layout drawn by the plugin. Unlike a collection, it only exists on your page: nothing is created in Videas.
- In an empty Videas block, click Create a widget
- Choose the type: Videos, Audio or Images
- Click each media to include: the order of your clicks is the display order
- Click Create the widget
The Widget panel shows how many media it holds; Change the selection opens the library again.
In a video widget, a click on a thumbnail opens the video in the player, over the page. Player ratio (in the Display panel) sets the shape of that player; the thumbnails’ shape is set in the widget.
The layouts
In the Widget panel, Layout offers:
| Layout | What the visitor sees |
|---|---|
| Grid | The media in rows and columns |
| Carousel | A single row that scrolls sideways, with arrows and a progress bar |
| Slider | One media at a time, with arrows; Advance on its own moves it along (Seconds per media) until the visitor steps in |
| Mosaic | Columns of pictures, each in its own format |
| Justified | Rows of equal height that fill the width |
| Featured | The first media large, with its description, the others beside it |
| List | One media per row, the thumbnail on the left, the title and description on the right |
Columns (1 to 6) sets the grid, the carousel and the mosaic. On a phone, the grid and the carousel go down to one column and the mosaic to two, whatever the setting. Spacing sets the gap between media.
The preset styles
Style, at the top of the Widget panel, sets several options at once; each stays editable afterwards:
- Minimal: a grid, slightly rounded corners, the titles below;
- Catalogue: a grid, the titles over the pictures, the durations shown;
- Photo gallery: a justified gallery, close together, with no captions;
- Cinema: the first media featured, on a dark background.
Captions, thumbnails and descriptions
- Caption: the media’s title, as written in Videas — Below, Overlaid on hover, Always overlaid or None;
- Thumbnail format: 16, 4, 1 or Original (each picture keeps its own shape). The mosaic and the justified gallery always keep the original format;
- Corner radius: from 0 to 24 px;
- Show durations: each video’s duration on its thumbnail;
- Show descriptions, in List and Featured: the description written in Videas, on two lines at most.
The image viewer
In an image widget, a click on a picture opens it in a viewer, over the page: previous and next arrows, a counter (“3 / 12”), the caption, a thumbnail strip and full screen. On the keyboard, the ← and → arrows move from one image to the next and Esc closes it; on a touch screen, swipe.
The viewer only opens in a widget: an image inserted on its own stays a plain image.
The audio widget
An audio widget shows a card: the Videas player of the current track (cover, waveform, controls), and the track list around it. Its settings: Show the track list, Number the tracks, Show durations and Play the next track automatically. The Theme and the Accent colour of the Style panel apply to the card.
Use the [videas] shortcode
The shortcode is for places where the block is not available: the classic editor, page builders, a text widget. It shows one media or a collection; widgets of several media are the block’s alone.
It needs the media’s embed identifier. In Videas, open the media, click Embed and look at the Embed URL field: the identifier is the part that follows /embed/.
| Attribute | Values | Effect |
|---|---|---|
embed (or id) |
the embed identifier | The media to show — required |
type |
video, audio, document, collection |
The media’s type, for the right sizing — needed for an audio |
mode |
inline, popover |
In the page (default) or in a window |
ratio |
16:9, 9:16, 1:1, 4:3 |
The aspect ratio; left out, it is the site’s default one |
width |
100%, 640px… |
The width |
autoplay, muted, loop, controls |
true, false |
The playback options |
trigger |
button, thumbnail |
In popover mode, the trigger |
trigger_label |
some text | The button’s label |
thumbnail |
an image’s address | The picture of the thumbnail trigger (without it, the trigger is a button) |
title |
some text | The title on an audio’s card in popover mode |
color |
a colour, for example #884aff |
The accent colour |
theme |
light, dark, colorful |
The player’s theme |
collection_subtype |
videos, audios, images, documents |
What a collection holds |
layout |
drawer, bottom-bar, sidebar |
The layout of a video collection |
auto_play_next, shuffle, show_playlist, show_waveform |
true, false |
The options of a video or audio collection |
enable_slideshow, slideshow_duration, enable_zoom, enable_download, enable_fullscreen |
true, false, a number of seconds |
The options of an image or document collection |
A video in the page, in 16:9:
[videas embed="YOUR-IDENTIFIER" ratio="16:9"]
A video in a window, opened by a button in your colour:
[videas embed="YOUR-IDENTIFIER" mode="popover" trigger="button" trigger_label="Watch the demo" color="#884aff"]
A video collection with the list beside the player, on a dark background:
[videas embed="YOUR-IDENTIFIER" type="collection" collection_subtype="videos" layout="sidebar" theme="dark"]
Get your videos into Google
The Videos in Google setting, in the Default settings card of the Videas page, describes each video of a published page to search engines, with VideoObject structured data: its title, description, thumbnail, duration, the date it was added and its player’s address. That is what Google reads to show a video in its results. The setting is on by default.
Worth knowing:
- the data covers the videos inserted with the block, on their own or in a video widget — not the shortcode;
- it is only added to published pages, never to drafts or previews;
- a video shown twice on the page is described once;
- a video with no title or no thumbnail in Videas is not described;
- the description and the date added are stored when you pick the media in the editor. A block inserted earlier does not carry them, and Google does not take a video with no date: pick the media again (Replace media), then update the page.
Set the defaults
The Default settings card of the Videas page sets how a new block shows: in the page or in a window, the aspect ratio, autoplay (muted), and the Videos in Google setting. These values only apply to blocks added afterwards: the blocks already in place keep their own settings. A shortcode with no ratio takes the default aspect ratio.
The Advanced fold, at the bottom of the page, holds the plugin’s language (the same as the site, or another language for the plugin alone) and the access key’s details: stored encrypted, and its permissions.
Disconnect the site
At the bottom of the Videas page, the account line names the connected organization and offers Disconnect this site. Disconnecting revokes the access key on Videas and erases it from WordPress: the site can no longer browse your library or upload files to it.
The media already published on your pages keep showing: their playback does not go through the key. To take them off your pages, delete the blocks.
Frequently asked questions
The connection request expired, what now?
Start the connection again from WordPress with Connect with Videas. Videas waits 10 minutes for your approval; after that, Videas shows “This request is no longer waiting for an answer: it expired, or somebody has already answered it. Start again from the integration.”, and WordPress may show one of these messages on your return:
- “Security check failed (state mismatch). Please try again.”
- “Videas refused the connection code: it may have expired or already been used. Please connect again.”
If WordPress shows “Videas is still answering the connection request. Reload this page in a few seconds.”, the connection is under way: just reload the page.
“Videas refused this site’s key (401)”, why?
The site’s key is no longer valid: most often, it was revoked from Videas (Settings › API Access), or an owner removed it from the email sent at connection time. As the message says, disconnect the site, then connect it again.
The site is not served over HTTPS
Connecting only works with an administration served over HTTPS. Install a certificate on your site — most hosts provide one for free —, or, if HTTPS is handled by a proxy in front of the site, add define( 'FORCE_SSL_ADMIN', true ); to wp-config.php.
A media does not appear
Depending on where:
- In the plugin’s library: check the type filter and the workspace selected. A media just uploaded may be Processing; the Awaiting credit status means its processing is waiting for credits on your account.
- When you insert it, the message “This media’s embed is turned off on Videas.” means Videas offers no embed for this media: pick another one, or contact Videas support.
- On the published page: if your embeds are restricted to some domains, add your WordPress site’s domain to the allowed list — see Restrict the domains allowed to embed your videos. The block’s Access panel reminds you of it.
- A message about permissions (“This site’s Videas connection does not allow…”): the access is incomplete; disconnect the site, then connect it again and approve every permission.
- “Could not load the media library. Check the connection in the Videas settings.”: open the Videas page to check that the site is still connected.
The editor preview and the published page differ
The editor shows a preview: widgets use the same stylesheet there as on the published page, but the editor’s column is not necessarily as wide as your theme’s, and the layouts adapt to the room they have — a grid goes down to one column below 600 px, for instance. The page itself is the reference: check it with Preview, then once published, on a computer and on a phone. The data for Google only appears on the published page.
Does the plugin change anything for my visitors?
A page that contains a Videas block or shortcode loads the Videas player, as an embed code pasted by hand does. The plugin suggests a paragraph to adapt for your privacy policy, under Settings › Privacy in WordPress.
In short
- Install the Videas plugin, then Connect with Videas: one approval on Videas, within 10 minutes, and no key to copy
- The key created for the site only browses, embeds and uploads media; it can be revoked from WordPress or from Videas
- Type
/videasto insert a media or a collection, or Create a widget to bring several together - Inline or Popover display (button, thumbnail or card), aspect ratio, colour, theme and playback options in the right-hand column
- Seven widget layouts and four preset styles; a viewer for images
- The
[videas]shortcode for the classic editor and page builders - Videos in Google describes your videos to search engines on published pages





