• Resolved Joe

    (@bojekki)


    I want to add functional code when creating content in the WYSIWYG editor and have the content function the way it’s programmed to. I try adding a table and sorting javascript, the table is created but without css effects or javascript functions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Matt Knowles

    (@aestheticdesign)

    Some themes have a way of adding scripts and others don’t. What theme are you using?

    Thread Starter Joe

    (@bojekki)

    It doesn’t work with any theme.

    catacaustic

    (@catacaustic)

    JavaScript (and a few other tags) can’t be added through the editor window. Anything like that will get stripped out before it’s saved.

    The “proper” way to do this is to set up an external JavaScript file, and use wp_enqueue_script() to include it into your sites <head> area

    Thread Starter Joe

    (@bojekki)

    Thanks for your effort both of you.
    I found this area in the docs –

    and it really helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add javascript or php’ is closed to new replies.