Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to embed a build in a worpress site ?

Discussion in 'WebGL' started by anthonov, Aug 29, 2019.

  1. anthonov

    anthonov

    Joined:
    Sep 24, 2015
    Posts:
    160
    So i have my build webgl and i want it on my wordpress blog. I can't found any clear doc on how to do this.
    So how to embed it ?
     
  2. wetcircuit

    wetcircuit

    Joined:
    Jul 17, 2012
    Posts:
    1,409
    Easiest way is probably to zip it and upload to itch.io. They allow iFrame embedding your game. It can run on a WP Page… I think it can be presented "brandless" if you dig into all itch.io's settings (custom backgrounds, play button color, etc), and can be hidden from Itch's customers.

    If you need to host it yourself, WP does a lot of things to re-route any URL that's not WP back into the WP ecosystem (404 pages, etc) so you will need to get into your .htaccess and edit to whitelist your Unity pages…. There are some WP plugins that do this too, but they are fiddly.
     
  3. anthonov

    anthonov

    Joined:
    Sep 24, 2015
    Posts:
    160
    I tried hosting it myself along my wordpress by ftp, without success.
    The wordpress pulgins are outdated or don't fit my needs in the official list. I found Verge3D plugin in this cgcookie thread https://cgcookie.com/questions/744-publishing-webgl-to-wordpress?ltid=744
    It works well, i will maybe gives a try with the itch.io solution, and yeah it will need to be hidden because it's not a game, its an interactive schema.
    But now half of my iframe screen is trunked by the sidebar of my wordpress theme. its another story... thanks
     
    wetcircuit likes this.
  4. wetcircuit

    wetcircuit

    Joined:
    Jul 17, 2012
    Posts:
    1,409
    Yeah, I wasted a lot of time trying to get simple projects to show in WP… and getting WP to allow non-WP URLs.

    Now I'm starting to think of Itch.io like a youtube – let them handle the server-side streaming and hosting. It's weird there are no Itch/Wordpress integrations..., but itch has a tool/page to build a customized iFrame, so all the cosmetic controls are on the itch-side. Give it a try, it's free LOL.
     
  5. acr1378

    acr1378

    Joined:
    Dec 4, 2014
    Posts:
    76
    We use Simmer.io for embedding in Wordpress via an iFrame. Works well. You might have to do some adjustments to the templates to get it to fit right responsively.