Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > CopperCube Open discussion
WebGL to WordPress

mattrox
Registered User
Quote
2019-09-12 16:44:33

Hello, I have a WordPress blog and would like to integrate a small game there. Can someone help me and tell me how and where to integrate the exported Coppercube WebGL files into WordPress?


srfstudio
Registered User
Quote
2019-09-12 21:18:40

You need 3 steps:
1. Publish your game to WebGL.
2. Upload your published files in Public folder (create a new folder for game in Public folder) on your site through FPT or CPanel.
3. Add an iframe code on your page where you want the game to be displayed and place a link to your html file in Public folder. I'm sure WP also has a number of free iframe plugins if you want more advanced functionality. Also you can just add a classic link to game's html so that it opens in a new page.

The alternative way would be to upload your game to, let's say, Kongregate and then past a direct link to html on Kongregate into your iframe. Game Jolt has a html widget you can add to you WP page if you don't want iframe but only link to game page.


mattrox
Registered User
Quote
2019-09-13 08:14:34

Many thanks for the answer. How does the HTML file know the path of the Copperlichtdata folder? Do I still need to adjust the HTML file? If I export the game to my desktop and open the HTML, then the browser opens and there is only a black screen (google Chrome latest version). But the test webgl works great. What could be the problem here?

*Update*
I got the solution. Is exactly like you said. Everything works perfect. Thank you very much.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact