Last active
          March 14, 2017 09:35 
        
      - 
      
- 
        Save anoopranawat/e9444ef1534e8b7ef19197445aff1a6f to your computer and use it in GitHub Desktop. 
    Function resolve conflict of WPOS plugin with Brooklyn theme
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?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