Defold HTML 5 to WordPress

I saw this youtube below and I want to do the same thing for my Defold learning blog.

Embed a Unity WebGL Game on a Wordpress Blog https://www.youtube.com/watch?v=3Jpqvt6FGQM

Can I just export HTML 5 application, then copy it to my blog and follow same procedures on my blog ?

Any suggested welcome!

Yes, that should probably work. Give it a try!

1 Like

I have searched the key word “arcade” on the wordPress.org for the plugin module, resulted answer is 7 items matched, and all failed after I installed and tested.

My idea is not working to play the tutorial game on my Blog (it’s a paid version).

Hello,
Embed Defold game in Wordpress pretty easy:

  1. Upload game folder to your hosting
  2. Insert HTML block in your article

    With the next HTML code:
<iframe src="https://LINK_TO_YOUR_FOLDER/index.html" width="640" height="512" scrolling="no"></iframe>

You need to replace LINK_TO_YOUR_FOLDER with link to your game folder on your hosting, also set width and height of your game.

Example:
https://agulev.com/easing-functions/

4 Likes

If the HTML widget doesn’t work then try this plugin: https://wordpress.org/plugins/iframe/

That was the only way to make iframe work on my blog: https://denysalmaral.com/2019/05/boat-sim-notes-1-water-friction.html

Hope yours is not from wordpress.com, there you cant.

1 Like

This blog is working with iFrame, but the Google Blogger is failed.
GameEngineDefold: http://sunjack012.pixnet.net/blog

This is my website, I put my first Defold game onto the website storage.


This is multilingual support as plugin default on the WordPress.

Hi!

This worked for me embedding from itch.io. thanks for the tip.

However, is it possible to point the player straight to the URL and have the game open in the browser? Not in an iframe, but occupying the whole viewport?

Thanks!