h5p content doesn't appear anymore
Submitted by pn.naoned on Mon, 07/26/2021 - 21:38
Forums:
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
Mon, 07/26/2021 - 22:24
Permalink
Hi!Have you by any chance
Hi!
Have you by any chance modified your theme? H5P requires the command
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
Tue, 07/27/2021 - 19:11
Permalink
h5p content not showing
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
Tue, 07/27/2021 - 19:56
Permalink
I had a look at the page you
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
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
Tue, 07/27/2021 - 20:39
Permalink
Thank you Oliver, I'll try to
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
Tue, 07/27/2021 - 21:04
Permalink
That do_action call should be
That do_action call should be in there via wp_footer(). It may well be something different that causes the same symptoms to manifest.