I have this js function (the textualizer.js
is external) but I can't make it works on WordPress. Any help?
I already added
wp_register_script( 'textualizer', WP_THEME_URL . '/assets/js/textualizer.js');
wp_enqueue_script( 'textualizer' );
to theme functions.
What am I doing wrong? I know it's probably simple, but I can't figure it out.
EDIT: i changed the function in functions.php, a user in irc channel told me that i was missing the correct action hook. still doesn't work... http://pastebin.com/L8ZRSvzU
get_template_directory_uri()
** rather thanWP_THEME_URL
.)