Hello, I have recently made a project launched on HTML5, I have tested the local-host, I want know what files I need and where to put them accordingly on Wordpress. Thanks!
Announcement
Collapse
No announcement yet.
HTML5 on Wordpress
Collapse
X
-
Don't do iFrame. I'll explain what you do.
FIRST, I'd suggest before you export, name everything with lower case text and dashes between words. Keep it SHORT! This just saves from the hassle of typing in the URL later.
Upload your newly generated HTML 5 folder to your server. Make sure you upload it to the same folder that your site, be it wordpress or joomla or whaterver, is in. It should be public_html
Unzip the folder you just uploaded. Most cpanels will allow you to right click and select unpack.
You should now have a folder in the main section called whatever you saved the file as.
Now point your browser to it - http://www.yoursite.com/folder-name/...game-name.html (YOU HAVE TO PUT IN THE .HTML name in the URL!)
You will now get an error about a bad token.
Add this code to your .htaccess file
<files *.gz>
AddType "text/javascript" .gz
AddEncoding gzip .gz
</files>
If you don't have access to your .htaccess file from the cpanel, login with a ftp client like filezilla or core ftp. In fact, you can do ALL of this through a ftp client.
Now go back to your game URL and it should boot up!
- 1 like
Comment
-
Just a thought: IF you want the game html page to have the same styling as your website, I'd put the files in the same folder as your site's html file location, create a new page in wordpress and copy/paste the html code from the export into the code section of the worpress page builder.
Or, copy/paste the html page from export along with all the files into the area where wordpress stores all of the html files.
Comment
-
In case anyone is interested, I have a Pull Request that should help with CSS and canvas issues. Basically, it simplifies the HTML output to a basic webpage where the only requirement is that a canvas (with a specific ID) exist on the page. It removes CSS content to avoid any formatting conflicts.
- 1 like
Comment
-
i want know how to configure the ue4 html environment ?
https://plus.google.com/100224361908202627891?hl=fa
Comment
Comment