How do I publish my game in HTML and place on a Wordpress site?

0 favourites
  • 3 posts
From the Asset Store
A set of vector game assets contains ground tiles and several objects, used for creating platformer games
  • Hello, I made some games in Construct 3 (HTML export) which I want to add to my website and give members access. I use wordpress and a membership plugin (paid membership pro).

    In Wordpress the slash "/" means wordpress/ folder only. If I use the file references (css, images, json and so on) as they are exported in Construct 3 the files will not be found and the game does not run.

    Wordpress requires that I need to update every single asset on index.html and on other necessary files with folder name.

    All references have to be (example):

    website.com/folder_name/file.js

    I made this adaptions to the exported files manually. Is anyone aware of a better solution or is it possible to configure the export in the way that I do not have to do those edits later?

    I would be happy for some help and advice.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Do you have access to cPanel? If so, you can create a new directory under the domain. example.com/mygame and extract the html5 export into this.

    Then make a new page in wordpress and iframe the URL that the extracted html5 is in. There's a couple of responsive iframe plugins available if you need it mobile optimized too.

    After that, you can place a redirect for example.com/mygame to redirect to the page that the iframe content is located, so if a visitor isn't a member and manages to locate straight to source directory, they'll be redirected to the iframed WordPress page that the games on

  • Hi, thanks a lot for your answer. I will try this and see how it works. Thank you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)