h5p content doesn't appear anymore

pn.naoned's picture

Hi there, 

at lease since yesterday, the content created with h5p doesn't display on posts or pages (Chrome and Safari). Any reason for this? 

The short code is well inserted into the post but it won't display when the post is published. 

Eg. https://simple-french.com/75th-anniversary-of-le-petit-prince/

Thank your your help. 

otacke's picture

Hi!

Have you by any chance modified your theme? H5P requires the command

do_action( 'wp_footer' );

in the theme template (usually in the footer). H5P interprets that action as a signal that WordPress is done building the post/page and H5P can start its work: to actually fill the H5P iframe with life.

Best,
Oliver

 

pn.naoned's picture

Hi, thank you for your reply otacke. 

I have not modified the template and the footer.php already has some code related to the footer (though not specifically do_action( 'wp_footer');

How did you come up with the conclusion that it that specific command? I added to the footer.php nevetheless but it didn't change anything. : (

otacke's picture

I had a look at the page you linked to and the shortcode is turned into the iframe code for H5P correctly. But the content is never initiated. That's what the command

do_action('wp_footer');

triggers, so I assumed that it is missing.

It is definitely required to fill the H5P iframe with life. If you added that command to the footer part of the theme, then you should check if it is really called when WordPress goes through the parts of the theme to be displayed.

Best,

Oliver 

pn.naoned's picture

Thank you Oliver, 

I'll try to figure out how to solve this problem bearing in mind what you suggested. It's weird as this theme has never done anything like that before and it's the twenty-seventeen, so a very popular and problem free (in general) theme. 

Thanks anyway for your reply. I appreciate it. 

otacke's picture

That do_action call should be in there via wp_footer(). It may well be something different that causes the same symptoms to manifest.