Adding H5P Interactive Content
Instructions for Adding H5P Elements to Your Book
- Navigate to the H5P Content menu and select Add New.
- Select a content type from the dropdown menu.
- If not already installed, click Get and follow the steps indicated (if necessary).
- Enter the information for your quiz/activity etc.
- Click on Create when you’re done!
Now that you’ve created your element, you can add it to your chapter. To do so:
- Copy the shortcode displayed in the top right of the screen.
- Navigate to the chapter where you would like to add the element.
- Paste the shortcode into place (you can do this in the visual editor, no need to switch to text).
- Save your chapter.
- View the web version to see the element in action.
- Export other desired formats to see the fallback message (e.g., how the H5P appears in a PDF, which is typically a link to the content online).
Here’s an example of creating a simple multiple-choice question:
![Screenshot of the Pressbooks admin interface highlighting the action of going to H5P Content on the dashboard and selecting Add New.](https://openbooks.macewan.ca/authorsguide/wp-content/uploads/sites/4/2019/10/h5p-2.png)
![Screentshot of the Pressbooks Admin interface highlighting the step to select your content type and select "Get" in order to download that content type.](https://openbooks.macewan.ca/authorsguide/wp-content/uploads/sites/4/2019/10/h5p-3.png)
![Screentshot of the Pressbooks Admin page showing the interface for adding a multiple choice question in H5P](https://openbooks.macewan.ca/authorsguide/wp-content/uploads/sites/4/2019/10/h5p-9.png)
![Screenshot of the Pressbooks Admin interface highlighting the shortcode on the right of the screen that should be copied to embed your H5P content into the book.](https://openbooks.macewan.ca/authorsguide/wp-content/uploads/sites/4/2019/10/h5p-4.png)
![Screenshot of the Pressbooks Admin interface showing someone pasting copied shortcode into their book content.](https://openbooks.macewan.ca/authorsguide/wp-content/uploads/sites/4/2019/10/h5p-5.png)
![Screenshot of the H5P content embedded into a live book.](https://openbooks.macewan.ca/authorsguide/wp-content/uploads/sites/4/2019/10/h5p-6.png)
![Screenshot of a PDF of a Pressbooks page with H5P content on it. This will display a link for readers to view the content onlin.e.](https://openbooks.macewan.ca/authorsguide/wp-content/uploads/sites/4/2019/10/h5p-7.png)
![Screenshot of a epub version of a Pressbooks page with H5P content on it. This will display a link for readers to view the content onlin.e.](https://openbooks.macewan.ca/authorsguide/wp-content/uploads/sites/4/2019/10/h5p-8.png)