Add custom javascript to your WordPress theme without touching the template code

Sometimes you want to add some custom effect to your WordPress template but don't want to make any changes to the theme code. Here you go, use this New Custom Javascript Editor plugin in your WordPress instance:

Github repository: https://github.com/dangtrinh/Custom-Javascript-Editor

1. Install

$ cd /path/to/your/wordpress/doc/root/wp-content/plugins
$ git clone https://github.com/dangtrinh/Custom-Javascript-Editor

2. Activate the New Custom JavaScript Editor in your WordPress Admin Dashboard

3. Go to Appearance >> Custom JavaScript or this url: http://yourdomain.com/wp-admin/themes.php?page=custom-javascript

4. Add your custom javascript and click Update





Comments