How to execute a plugin on a single page only?
WordPress has a built-in function called wp_enqueue_script() which will allow a certain piece of JavaScript to be included in a page. If you’d just like to see that script on a particular page, you can conditionally call it from the theme file. For example: <?php if (is_page(‘home’)) { wp_register_script(‘custom_script’, get_template_directory_uri() . ‘/js/custom_script.js’); wp_enqueue_script(‘custom_script’); } ?> … Read more