Additional JavaScript for WordPress Customizer lets you add JavaScript code using the WordPress Customizer.
You need to have the edit_css
capability to add JavaScript. edit_css
has the same capability as unfiltered_html
You know the drill.
- Download the plugin
- Go to Plugins > Add New.
- Click on Upload Plugin button found on top left corner of page
- Select the downloaded .zip file
The plugin is also available via wppackagist as soderlind/additional-javascript
Additional JavaScript is copyright 2018 Per Soderlind
Additional JavaScript is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
Additional JavaScript is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Extension. If not, see http://www.gnu.org/licenses/.