H5P content is not loading in buddyboss activity feed

Hi

I trust this message finds you well. I am writing to bring to your attention a concern I have encountered while working with GrassBlade shortcodes generated from H5P content.

Upon inserting the shortcode into the BuddyBoss activity feed, it appears that only the iframe is being generated, omitting the essential head and body content. This issue is hindering the proper rendering of the intended elements.

I would appreciate your assistance in investigating and resolving this matter. If there are any additional details or steps required on my end, please do not hesitate to inform me.

Thank you for your prompt attention to this matter. I look forward to your guidance and resolution.content

otacke's picture

Hi!

A common reason on WordPress addons for not showing H5P content is that they lack a `do_action( 'wp_footer' );`. It's usually called when WordPress displays a 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.

 

Hi
Thanks for prompt response. I have added do_action( 'wp_footer' ); but its still not rendering the content.

otacke's picture

Where have you added that line of code? If at the right place, then it's something else. Hard to say without running BuddyPress onself ... You'll probably have to trace what happens when H5P tries to replace the shortcode then (https://github.com/h5p/h5p-wordpress-plugin/blob/feb39781caa264978591c25676865d5f8320f0ac/public/class-h5p-plugin.php#L889).

I have added it in my footer.php file in my child theme. 

otacke's picture

As I said, then you'd need to trace what H5P is doing.