Three.js JavaScript 3D library on a WordPress site

I wanted to use Three.js JavaScript 3D library on my WordPress site, so I tried the three.min.js in the:

  1. body of a post

    <script src="/three.min.js"></script>

  2. then the footer

    <script type='text/javascript' src='/three.min.js'></script>

  3. and now the Pinboard: Theme Functions (functions.php) file

    function pinboard_enqueue_scripts() {
    wp_register_script('three.min', '/three.min.js', true);
    wp_enqueue_script( 'three.min' );
    }
    add_action( 'wp_enqueue_scripts', 'pinboard_enqueue_scripts' );

Unfortunately the cube from Mr.doob’s page is not showing up on my Cube page.

Your help in running the Three.js on my WordPress site would be greatly appreciated.

Thank you.

81 thoughts on “Three.js JavaScript 3D library on a WordPress site”

  1. I am curious to find out what blog system you
    happen to be using? I’m experiencing some minor security issues with my latest site and I would like to find something more
    risk-free. Do you have any recommendations?

    Reply
  2. I really like your blog.. very nice colors & theme.
    Did you create this website yourself or did you hire someone to do it for you?
    Plz respond as I’m looking to construct my own blog and would
    like to know where u got this from. many thanks

    Reply
  3. My developer is trying to persuade me to move to .net from PHP.

    I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using Movable-type on a variety of websites for about a year and am anxious
    about switching to another platform. I have heard good things about blogengine.net.

    Is there a way I can transfer all my wordpress content into it?
    Any help would be greatly appreciated!

    Reply
  4. You could definitely see your expertise within the work you write.

    The sector hopes for even more passionate writers like you
    who are not afraid to mention how they believe.

    All the time follow your heart.

    Reply
  5. Just want to say your article is as surprising. The clearness in your post is simply spectacular and i can assume you are an expert
    on this subject. Well with your permission let me to grab your RSS feed to keep updated with forthcoming post.

    Thanks a million and please continue the enjoyable work.
    quest bars http://bit.ly/3jZgEA2 quest bars

    Reply
  6. Yesterday, while I was at work, my sister stole my iPad and tested to see if
    it can survive a 40 foot drop, just so she can be a youtube sensation. My
    iPad is now broken and she has 83 views. I know this is totally off topic but I had to share it with someone!

    Reply

Leave a Comment