Embed WebGL build on Wordpress Website

Hey guys,

I would like to know how to go about embedding my WebGL game into my Wordpress website. I have (briefly) tried the iFrame method by uploading the folder into my Cpanel but with no success. I’m not sure if I need to put it in a certain folder or whether that even matters.

I have also tried using Dropbox but i can’t even get that to work.

If anybody has has success with this or knows how to do it I’d love some help!

Cheers!

Hello Harrisonhough.

Before you embed your game into your website, make sure that your game is running well without embedding, i.e. when launched directly from the location where you uploaded it.

I just upload my game via FTP to a folder off the root, and it works for me. My WordPress site is hosted with GoDaddy.

Not sure who you’re hosted with or what their restrictions are though.

Yes the game works fine running it locally through Firefox. Just not if I try to embed through iframe or on Dropbox.

When you say off the root do you mean outside of the wordpress directory?
I am also hosted with GoDaddy

Also when you say Upload the game you mean the whole folder with the index.html and Release folder and all that?

Upload your html file and release folder to the initial directory your FTP client connects to.

So I have tried that again (It’s similar to what I did initially) still doesn’t work. Could it be perhaps my WP Theme doesn’t allow for it or something? Or that WP doesn’t allow it because it’s outside the WP directory?

Post a screenshot of your ftp root folder.

I am also looking to do this, however when I reference the FTP location using an iframe it asks for a username and password, is there any way to get around this?

Thanks in advance