Skip to content

Embedding Packages

[smbr_player id="123"]

An alias is also available:

[slidemind_player id="123"]

Both shortcodes are functionally identical.

AttributeDescriptionDefaultValues
idPackage ID (required)0Any valid package ID
displayDisplay modeinlineinline, overlay, newwindow
widthPlayer width (inline mode)100%CSS value (e.g. 100%, 800px)
heightPlayer height (inline mode)600pxCSS value
triggerWhat opens the content (overlay/newwindow)buttonbutton, image, link
button_textCustom button labelPackage titleAny text
button_sizeButton sizenormalnormal, small, large
button_styleButton appearancefilledfilled, outlined
show_fullscreenShow fullscreen button (inline mode)yesyes, no
overlay_titleTitle shown in the overlay headerPackage titleAny text
overlay_widthOverlay widthGlobal defaultCSS value (e.g. 100%, 900px)
overlay_heightOverlay heightGlobal defaultCSS value (e.g. 800px)
imageImage URL for image triggerURL
link_textLink text for link triggerAny text

The following older attribute names are still supported but the overlay_* names are preferred:

Old nameNew name
lightbox_titleoverlay_title
lightbox_widthoverlay_width
lightbox_heightoverlay_height

If both old and new names are provided, the new name takes precedence.

These older display mode values are also accepted:

Old valueMaps to
iframeinline
lightboxoverlay
newtabnewwindow

Inline with custom dimensions:

[smbr_player id="42" width="800px" height="500px"]

Inline without fullscreen button:

[smbr_player id="42" show_fullscreen="no"]

Overlay triggered by a button:

[smbr_player id="42" display="overlay" button_text="Start the module"]

Overlay triggered by an image:

[smbr_player id="42" display="overlay" trigger="image" image="https://example.com/thumbnail.jpg"]

Overlay with custom dimensions:

[smbr_player id="42" display="overlay" overlay_width="90%" overlay_height="700px" overlay_title="Safety Training"]

New window triggered by a link:

[smbr_player id="42" display="newwindow" trigger="link" link_text="Open in a new tab"]

  1. In the block editor, click + to add a new block.
  2. Search for SlideMind Player or browse the SlideMind category.
  3. Select a package from the dropdown in the block toolbar.

The block inspector (right sidebar) exposes the following settings:

SettingPanelDescriptionDefault
PackageMainSelect the package to display
Display modeDisplayinline, overlay, or newwindowinline
WidthDisplayPlayer width100%
HeightDisplayPlayer height600px
Show fullscreenDisplayToggle fullscreen button (inline only)On
TriggerTriggerbutton, image, or link (overlay/newwindow only)button
Button textTriggerCustom button labelPackage title
Button sizeTriggernormal, small, or largenormal
Button styleTriggerfilled or outlinedfilled
Image URLTriggerImage for image trigger
Link textTriggerText for link trigger
Overlay titleOverlayTitle in the overlay headerPackage title
Use global dimensionsOverlayUse site-wide default overlay sizeOn
Overlay widthOverlayCustom width (when global is off)100%
Overlay heightOverlayCustom height (when global is off)800px

Tip: Settings that are not relevant to the selected display mode are automatically hidden. For example, trigger options only appear when the display mode is overlay or newwindow.

The block renders a server-side preview in the editor showing the package name and display mode. The actual SCORM/xAPI content does not load in the editor — it only runs on the frontend for logged-in users.


The package loads directly in the page inside a sandboxed iframe.

  • Dimensions are controlled by the width and height attributes.
  • A fullscreen button appears in the top-right corner of the player (disable with show_fullscreen="no").
  • The iframe uses the following sandbox attributes: allow-scripts allow-same-origin allow-forms allow-popups allow-modals. Top navigation is not allowed.

The package opens in a modal overlay on top of the page.

  • Triggers: a button, a clickable image, or a text link.
  • Dimensions: controlled by overlay_width and overlay_height. In the Gutenberg block, you can toggle “Use global dimensions” to inherit site-wide defaults.
  • Title: the overlay header displays the package title by default, or a custom title set with overlay_title.
  • The overlay includes a close button and a backdrop. Clicking outside the overlay closes it.

The package opens in a new browser tab.

  • Triggers: a button, a clickable image, or a text link.
  • The content opens in a full-page launcher with the SCORM or xAPI runtime loaded.
  • No iframe sandboxing is applied in the new tab (the launcher page is nonce-protected).

  • Login required — Learners must be logged in to WordPress to access package content. Unauthenticated users receive a 401 error.
  • Nonce-signed URLs — All launch URLs include a WordPress nonce for security. The nonce is generated when the shortcode or block renders and is verified on the server before serving content.
  • Iframe sandboxing — Inline and overlay iframes use sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-modals" to isolate uploaded content. Top-level navigation (allow-top-navigation) is intentionally excluded.