General discussion

Wordpress Shortcode for content

Hi,

I've been using H5P in wordpress for a few months and its great. I use the embed code to show the content and its been fine.

However, I've recently come across another wordpress installation that I don't have control over and when I paste the embed code it strips out both the iframe and the script tags, meaning that I can't embed the content.

A way round this (and arguably better way) of embedding content in wordpress would be to provide a shortcode for each piece of content e.g. [hp5 content=123456] with additional parameters such as background colour perhaps etc.

Configuring the iFrame background colour

Hi,

I'm embedding some H5P content from wordpress in an iFrame which works well. However, the background colour of the main web body is not white, but grey.

The iFrame renders the content with a white background which I've identified as this style:
.h5p-question {
    background: rgba(255, 255, 255, 0.9);
}

which is coming coming from your questions.css

Pages