Implementing Babylon.js viewer in posts & on pages
-
Hi Armin,
Love your work! I've been super happy with the Laytheme experience on my blog.
I was wondering if there was an easy way to implement the babylon.js viewer inside posts and or on new pages. I'm super noobie when it comes to custom html, but figured I'd ask if there was already a simple way to make this work.
Their sample code is below:
<html>
<head>
<title>Babylon.js Viewer - Display a 3D model</title>
<script src="https://preview.babylonjs.com/viewer/babylon.viewer.js"></script>
</head>
<body>
<babylon model="https://models.babylonjs.com/boombox.glb" templates.main.params.fill-screen="true"></babylon>
</body>
</html>Any help or advice or pointing in the right direction would be amazing. =)
Cheers,
-
Dear @strayorbit
Because your Lay Theme website is a "Single Page" JavaScript application, so embedding other JS libraries is not possibly always.We are working on a PHP version though.
Best!
Marius
-
Thanks @mariusjopen Great to know! I'll stay tuned. =)
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it