Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Integrate .pde files (Processing)

Integrate .pde files (Processing)

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 473 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kanouu1
    wrote on last edited by
    #1

    Hello!

    I am not an expert in coding but I had some fun with Processing and now I want to integrate my sketches to Laytheme.

    I followed these instructions (http://hartleyhacks.com/programming/how-to-insert-processing-sketches-into-wordpress-posts/) to integrate my .pde file to Wordpress; my sketches does not appear on the image library but this is not an issue.

    To integrate processing files the .pde needs to be associated to a .js application called "processing.min.js" which it cannot be uploaded with Laytheme, for security reasons it says.

    As I read this page (http://laytheme.com/documentation.html#custom-javascript) I am not sure if I have to copy and paste the content of this .js file in the "custom <head> content". What do you think? Do you have any piece of advice to import this "processing.min.js file ?

    Thank you,
    Nina

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kanouu1
      wrote on last edited by
      #2

      Actually, I think I managed this point by uploading the pocessing.js file which is more heavy I think but should work.

      My concern is now in this point, where I have "to switch from ‘Visual’ to ‘Text’ in order to enter code". How can I do this with Laytheme ?

      Thank you,
      Nina

      1 Reply Last reply
      0
      • mariusjopenM Offline
        mariusjopenM Offline
        mariusjopen
        Global Moderator
        wrote on last edited by
        #3

        Dear @kanouu1
        in a text-element you can switch to HTML as well you can make an HTML element.
        But I am not sure what the PDE library needs and how it will be integrated.
        Can you show what you already have?

        Best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kanouu1
          wrote on last edited by
          #4

          Hello Marius,

          Thank you for your answer.

          I try to make it on this page : http://www.ninadelevaque.com/processing but there is just a blank where my canvas is suppose to be.

          I added my .pde and processing.js files thanks to Mime Type Setting plugin.

          Maybe I can translate my .java sketches to .js and paste them directly to my page ?

          Thanks,
          Nina

          1 Reply Last reply
          0
          • mariusjopenM Offline
            mariusjopenM Offline
            mariusjopen
            Global Moderator
            wrote on last edited by
            #5

            Dear @kanouu1
            we have not much experience with integrating Processing sketches into LayTheme.
            What you need to look into is for sure this:
            http://laytheme.com/documentation.html#custom-javascript

            Best!

            Marius

            www.mariusjopen.world

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            I also code custom websites or custom Lay features.
            💿 Email me here: 💿
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. 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:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            A
            alasdair17
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search