Title: dequeue script in parent theme
Last modified: December 31, 2018

---

# dequeue script in parent theme

 *  [markf1](https://wordpress.org/support/users/markf1/)
 * (@markf1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/dequeue-script-in-parent-theme/)
 * I am developing a site using a child theme of twentyninteen. I have it working
   as it should but I’m trying to clean it up and make it better.
 * A script in the parent twentynineteen theme is causing problems when the site
   is viewed on ipad. I have tried to dequeue it but it still seems to be loading.
   The script is in wp-content/themes/twentynineteen/js and is touch-keyboard-navigation.
   js
 * Here is my child theme funtions.php:
 *     ```
       <?php
       //* Code goes here
   
       function enqueue_parent_styles() {
          wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
       }
   
       add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
   
       //Dequeue JavaScripts
       function project_dequeue_unnecessary_scripts() {
           wp_dequeue_script( 'touch-keyboard-navigation' );
       }
       add_action( 'wp_print_scripts', 'project_dequeue_unnecessary_scripts', 100 );
       ```
   
 * Any help getting this configured correctly to remove script will be much appreciated.
   Thanks!
    -  This topic was modified 7 years, 3 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 3 months ago](https://wordpress.org/support/topic/dequeue-script-in-parent-theme/#post-11040170)
 * I recommend asking at [https://wordpress.org/support/theme/twentynineteen#new-post](https://wordpress.org/support/theme/twentynineteen#new-post)
   so the theme’s developers and support community can help you with this.
 *  Thread Starter [markf1](https://wordpress.org/support/users/markf1/)
 * (@markf1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/dequeue-script-in-parent-theme/#post-11040175)
 * OK I will post there. thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘dequeue script in parent theme’ is closed to new replies.

## Tags

 * [dequeue](https://wordpress.org/support/topic-tag/dequeue/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [markf1](https://wordpress.org/support/users/markf1/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/dequeue-script-in-parent-theme/#post-11040175)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
