Форум

Сообщения, созданные пользователем kdeluxe
26 февраля 2016 03:36
when you say "inserted the iframe right after the <body> tag", which page is this, the home page in the editor?
25 февраля 2016 18:27
Yes! Something like that, exactly. It's literally the first example I know of where the background on a wordpress site has been replaced with webgl.

But I still have no idea how to get that to work. My template even has a feature where if someone looks at it on their phone, it'll replace a video background with a static image, so if there was a way to just replace the video with the blend4web html, that would be great. That way mobile users would still get a photo instead.

Someone else told me this though:

"it’s not html, it’s base64 encoded into the template which could be a problem, since you now cannot change the way it works since everything is inlined you need someone to implement this in a correct way, else it’s gonna bite you in the ass sooner or later. if you put it in a page with contents/videos/images etc. it’s gonna behave differently, especially on for example an ipad inlined code means js/css IN the html page, instead of loading it"
24 февраля 2016 01:56
You're talking in broad generalities, that really don't help me get any closer to the answer. I've tried adding some code to certain sections to no effect. And also, considering that I've found very, very few wordpress sites using webgl, it can't be all that simple.
20 февраля 2016 14:19
So I guess there's no blend4web users here that are also knowledgeable about wordpress? There must be a way to do this, but in my posts in wordpress forums there's almost nobody who cares about webgl.
18 февраля 2016 19:55
Nope, sorry, doesn't seem to be any way of just pasting an iframe into a wordpress theme's background code, I tried a number of things and the closest I can come is embedding it onto a page and having a small, framed version inside the content box.
18 февраля 2016 18:34
Thanks, there's some useful info in his videos, it's given me some ideas for the near future, but although I didn't watch everything I don't think it tells me how to add it to a wordpress background.

I find it strange that there's so very little information online about how to integrate webgl into wordpress in this way. It's such a common web platform, and I would have thought many by now would have wanted to load these sorts of backgrounds beneath the rest of their content. If we can play videos, why not interactive content as well?
18 февраля 2016 17:56
Hello! I've been looking for ages to have WebGL content running on my website, underneath the menu and content boxes, and Blend4web seems like it might actually work. It's very easy to get an html page running, although what I really need is to make this my page-home.php background.

So… any suggestions? Is there some simple way I haven't stumbled across yet? I don't know much about php or html, but there must be a way, using an iframe maybe, to make this work.