Announcement

Collapse
No announcement yet.

HTML5 on Wordpress

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    HTML5 on Wordpress

    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!

    #2
    I also have a wordpress site. It would be cool to add this. Unity has a plugin for Wordpress.

    Comment


      #3
      Create a page with your html5 content. Than make an iFrame in wordpress and link to that page.
      An iFrame is like a webpage within a webpage.

      Comment


        #4
        Html 5 page is convert in word Press.
        Freelance Web Designers
        Ecommerce Website Designer

        Comment


          #5
          Iframe is bad idea :>

          Comment


            #6
            i want know how to configure the ue4 html environment ?

            Comment


              #7
              Originally posted by Renji View Post
              Iframe is bad idea :>
              why is i frame a bad idea? do you have a other solution?

              Comment


                #8
                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!

                Comment


                  #9
                  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


                    #10
                    hi , im trying to integrate html5 project on wordpress , please could you be more specific about localisation of main folder of html files, do we have to put in " WWW" , "wp-admin", "wp-content", or "wp-includes" ?? thks , im running wordpress on ovh server thks

                    Comment


                      #11
                      I think best Idea is iframe

                      Comment


                        #12
                        I have a simple question. Can I put HTML 5 games on WordPress?

                        Earn to die 3 unblocked

                        Comment


                          #13
                          i want know how to configure the ue4 html environment ?
                          http://gowebsite.ir

                          Comment


                            #14
                            I am agree that Iframe is very bad idea

                            Comment


                              #15
                              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.

                              Comment

                              Working...
                              X