Skip to content

Instantly share code, notes, and snippets.

@anoopranawat
Last active March 14, 2017 09:35
Show Gist options
  • Save anoopranawat/e9444ef1534e8b7ef19197445aff1a6f to your computer and use it in GitHub Desktop.
Save anoopranawat/e9444ef1534e8b7ef19197445aff1a6f to your computer and use it in GitHub Desktop.
Function resolve conflict of WPOS plugin with Brooklyn theme
<?php
// Function to dequeue script so it will not conflict with WPOS plugin
function wpos_dequeue_conflict_script() {
wp_dequeue_script( 'retinajs' );
}
add_action( 'wp_enqueue_scripts', 'wpos_dequeue_conflict_script', 25 );
// Function to enqueue dequeue script again so theme functionality will not be break
function wpos_enqueue_dequeue_script() {
wp_enqueue_script( 'retinajs' );
}
add_action( 'wp_footer', 'wpos_enqueue_dequeue_script' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment