Publishing my game on wordpress? (Do not post Plugin solutions they do not work.)
Ok all the plugins act do not work any way to get my WebGL build of my game on wordpress so people can play my game :)
This is barely Unity related. This is just about ad$$anonymous$$istration of a web server. I'll move the question to the help room. However if this turns into an endless discussion, please create a thread on the forum. UnityAnswers is not meant for extensive discussions. One Question, and one or more answers that answer the question.
Answer by Dankey_Kang · Oct 03, 2018 at 06:08 AM
I did this recently and it worked well for me. Here is how I did it. When you make a webgl build you'll see three things in the top level folder structure. Two directories, called Build and Template and an index.html file. You'll upload the two directiories to your server, I put it in a folder I made for unity stuff in my child theme directory. Then open your index.html file and basically you're going to have to transplant some of the html and javascript into a custom page using your best judgement and make sure to change the Build and Template asset links to link appropriately to the ones hosted on your server. It might take some trial and error but luckily there isnt much html to go over. You may be able to add it to your wordpress site by other means but this is the way I got the job done.
Sounds like and Idea, In the folders under themes can't seem to find my Wordpress pages though, how did you open them to edit them? If I use the page eadit tool I just get a white page XD
There is some confusion I think. You are refering to the wordpress ad$$anonymous$$ interface. When I talk about the "theme" folder I mean in the backend, as in the servers files. This can be accessed using a FTP client, I use Filezillas. Are you familiar with using a FTP client?
Basically, the idea I am thinking is this. You connect to your web server using a FTP client using your server credientials. Then you navigate the file structure to get to your uploads folder. You then create a folder in there called Unity or something and then upload your Build and Template folders to there. Then I would preferably look into using pluggin for properly adding script and link tags to your page, not sure if you can add them as you have in the page editor as they might get stripped by wordpress. Then you can add a small portion of the index file onto your page as you have.
Your answer
Follow this Question
Related Questions
Web GL Publish does not work for me 2 Answers
WebGL gets ride of background? 1 Answer
webgl overrides privious build on unity play 0 Answers
Help fixing error when building WebGL 0 Answers