fbpx
  1. Home
  2. Kleo
  3. Developer

Chapter: Developer

Snippets, actions, filters, examples of changing theme using code

Dequeue and deregister the APP.JS theme file and load it from child theme.

Using the next snippet you will be allowed to de-register and dequeue APP.js or APP.min.js file from parent theme wp-content/themes/kleo/assets/js/app.js and to load your own customized or modified app.js file from child from this location : wp-content/themes/kleo-child/assets/js/app.js /* Deregister the APP.JS from parent and loade it from custom location (child theme)*/ function sq7r_deregister_app_js() { $min = sq_option( ‘dev_mode’, 0 ) […]