Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Aashil Bijukshe

    (@lihsaa)

    Hello @phaytran

    We will check this on our end and get back to you. Thank You

    Hello,

    After testing various options and several plugins, I have come to the conclusion that WordPress shortcodes are not accepted in a Learn page for questions – sad but true. That means that any code with the [xxx] format (except for H5P) will appear correctly on the exiting phase but will not work on the Learn page.

    Currently – and before a solution is suggested by the Masteriyo team – I might suggest a couple of solutions.

    (1) When you edit the description, click the “Video” icon on the toolbar (not the “Media” button). Click “Embed” and enter this code:

    <iframe width=”560″ height=”315″ src=”https:/ / xyz.com/wp-upload/xyz” frameborder=”0″></iframe>

    Enter the web address for your video file for “src” and save. The disadvantage is that the video file will play automatically and this is quite annoying while you edit the question.

    (2) Use H5P and create an Interactive Video activity with it. Here, you will add your video file into the activity. Make sure that you allow “Embed” for the H5P activity. Then, copy the embed code for H5P, go to your Masteriyo question and use the H5P button to embed the activity.

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @phaytran and @hakangur,

    The Learn page supports iframe videos, but you’ll need to add them using HTML blocks (in block editor) or embed mode (in classic editor). For more details on how to do this, please watch this screen recording: https://www.youtube.com/embed/IfwFnCkxC9I

    Please note that using shortcodes or HTML code like H5P won’t work because the Learn page is built with PHP and ReactJS. Adding such codes may interfere with content loading, so we’ve intentionally blocked them to prevent any conflicts.

    Thank you for understanding!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.