=== WP Add Custom JS === Contributors: vg2085 Tags: javascript, custom javascript, js, custom js, single post js, site js, sitewide js, single page js, custom post type js, product js Requires at least: 4.0 Tested up to: 4.7.2 Stable tag: 1.0.0 License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html Add custom JavaScript to the whole website and to specific posts and pages. == Description == WP Add Custom JS allows you to add **custom JS** to the **whole website** and to **individual posts, pages and custom post types** (such as **Woocommerce products**). The JS rules applied to the whole website will override the default javascript of your theme and plugins, while the JS scripts applied to specific pages, posts or custom post types. You can edit the main JS from the the "Add custom JS" settings page. The plugin also creates a new "Custom JS" box in the editing area to **add custom JS to specific posts, pages and custom post types**. Available languages: - English == Installation == = Automatic installation = 1. Go to Plugins > Add New > Upload and select the .zip file from your hard disk 2. Click the "Install now" button 3. Activate the plugin through the 'Plugins' menu in WordPress = Manual installation = 1. Upload the plugin folder to the `/wp-content/plugins/` directory via ftp 2. Activate the plugin through the 'Plugins' menu in WordPress == Frequently Asked Questions == = How do I apply custom JS to the whole website? = Once the plugin is installed and activated, from your dashboard navigate to "Add custom JS", and write the JS code in the textarea. = How do I apply custom JS to a specific post or page? = Once the plugin is installed and activated, you will find a new box called "Custom JS" in your post/page editing area. = How do I apply custom JS to a specific custom post type? = Once the plugin is installed and activated, from your dashboard navigate to "Add custom JS", check the desired custom post types and save. You will find a new box called "Custom JS" in your custom post type editing area. = The "Custom JS" box is not displaying, why? = Click on the "Screen option" link from your post/page editing area and be sure the "Custom JS" option is checked. == Screenshots == 1. Location in the WP menu. 2. Add custom JS to the whole website. 3. Add custom JS to specific posts. 4. Add custom JS to specific pages. 5. Add custom JS to specific custom post types (such as Woocommerce products). == Changelog == = 1.0.0 = * Plugin created based on WP Add Custom CSS by "Daniele De Santis": https://wordpress.org/plugins/wp-add-custom-css/