Lueira Embed plugin: technical reference

Technical reference for the "Lueira Embed" WordPress plugin: full shortcode parameters, rental module, URL structure, CSS customisation, sandbox attributes, requirements and changelog.

On this page
  1. Features of the Lueira Embed plugin
  2. Manual plugin installation (without using the modal)
  3. Advanced plugin configuration
  4. Shortcode generated by product type
  5. Shortcode parameters
  6. Shortcode examples with additional parameters
  7. URL structure
  8. Customisation with CSS
  9. Available CSS classes
  10. Compatibility
  11. Security: iframe sandbox attributes
  12. Plugin requirements
  13. Version history

This guide is the technical reference for the "Lueira Embed" plugin for WordPress. It is intended for people with knowledge of WordPress or HTML who want to go beyond the "Embed code" modal: customise the button, apply CSS classes, check all the shortcode parameters or understand the URL structure.

👉 If you only need to embed a product quickly, it is better to start with the visual guide: How to embed your Lueira activities in your WordPress website.

Features of the Lueira Embed plugin

  • Easy integration: embed Lueira products using a shortcode, with no technical knowledge needed.

  • Responsive design: the modal automatically adapts to any device.

  • Accessible and secure: it complies with ARIA standards and uses a protected (sandboxed) iframe.

  • Customisable: lets you change the button text and apply your own styles.

  • Simple configuration: includes language options and settings from the WordPress panel.

Manual plugin installation (without using the modal)

  1. Upload the files to the /wp-content/plugins/lueira/ folder

  2. Activate the plugin from the Plugins menu in your WordPress panel.

  3. (Optional) Go to Settings > Lueira Embed to configure the URL of your centre in Lueira.

Advanced plugin configuration

Go to Settings > Lueira Embed in the WordPress panel to configure:

Shortcode generated by product type

The "Embed code" modal in the admin generates a shortcode adapted to the product type. These are the exact forms it produces:

Product type

Generated shortcode

Iframe embed URL

Group lesson

[lueira id="{id}" module="school" product_type="group"]

{host}/embed/school/group/{id}

Private lesson

[lueira id="{id}" module="school" product_type="private"]

{host}/embed/school/private/{id}

Group lesson package

[lueira id="{id}" module="school" product_type="group-package"]

{host}/embed/school/group-package/{id}

Rental product

[lueira id="{id}" module="rent"]

{host}/embed/rent/product/{id}

Rental pack (bundle)

[lueira id="{id}" module="rent" product_type="bundle"]

{host}/embed/rent/bundle/{id}

⚠️ Special case — individual rental products: the generated shortcode does not include the product_type parameter. The plugin assumes product by default when module="rent" is used without an explicit type. Only rental packs (bundles) carry product_type="bundle".

Shortcode parameters

The modal only exposes the required parameters. If you want to customise further (button text, language, CSS classes), edit the shortcode after copying it, adding the optional parameters:

Parameter

Required

Default

Description

id

Yes

-

The ID of the product to be embedded

module

Yes

-

"school" (lessons / lesson packages) or "rent" (rental / rental packs)

product_type

Depends

"product" if module="rent"

"private", "group", "group-package" for school; "bundle" for rental packs. It can be omitted for individual rental products.

lang

No

"es"

Language code to display the localised content. The modal does not add this parameter; you have to add it by hand if you need it.

button_text

No

"View activity"

Text that will be shown on the shortcode button

class

No

-

Additional CSS classes for the button

Shortcode examples with additional parameters

Private lesson with custom button text:

[lueira id="456" module="school" product_type="private" button_text="View Activity"]

Group lesson package with its own CSS class and language forced to Spanish:

[lueira id="789" module="school" product_type="group-package" lang="es" class="btn-primary" button_text="View Activity"]

URL structure

URLs generated by the "Embed code" modal (iFrame tab):

The admin modal generates URLs without a language prefix. The format is:

{host_url}/embed/{module}/{product_type}/{activity_id}

Exception: for individual rental products the type segment is literally product, like this: {host_url}/embed/rent/product/{id}.

URLs generated by the WordPress plugin from the shortcode:

The plugin builds URLs with the following format, adding the language segment if you define it:

{host_url}/{lang}/embed/{module}/{product_type}/{activity_id}

Examples:

Customisation with CSS

The plugin includes default CSS styles for the modal and the button. You can customise their appearance in the following ways:

  • Adding custom CSS classes through the class parameter of the shortcode.

  • Overriding the plugin's styles from your WordPress theme.

  • Directly modifying the modal.css file included in the plugin.

Available CSS classes

Class

Element

.lueira-embed-button-wrapper

Button container

.lueira-embed-trigger

Button that opens the modal

.lueira-embed

Main modal container

.lueira-embed__backdrop

Modal background or overlay

.lueira-embed__dialog

Modal dialog box

.lueira-embed__close

Button to close the modal

Compatibility

  • Modern browsers: Chrome, Firefox, Safari and Edge.

  • Mobile-friendly (responsive) design.

  • Accessibility compliance with ARIA attributes.

Security: iframe sandbox attributes

The iframe embedded by the plugin includes the following sandbox security attributes:

  • allow-same-origin

  • allow-scripts

  • allow-popups

  • allow-forms

  • allow-top-navigation-by-user-activation

Plugin requirements

  • WordPress 5.0 or higher

  • PHP 7.4 or higher

Version history

Version 1.0.0

  • Shortcode implementation with overlay modal

  • Settings page in the admin

  • Responsive design

  • Multi-language support

  • Iframe with security sandbox

If you have any questions about how to configure iframes on your website, don't hesitate to contact us!