[theme-reviewers] Removal of parent theme's enqueue function

Zulfikar Nore zulfikarnore at live.com
Sun Sep 22 01:13:44 UTC 2013


OK got it to work - I was dequeueing in one function and the re enqueueing in a second function which did not work.
Placing both in the same function and giving it a priority of 20 did the trick :)
Off to bed now and will figure the rest out tomorrow. 

From: zulfikarnore at live.com
To: theme-reviewers at lists.wordpress.org
Date: Sun, 22 Sep 2013 01:23:01 +0100
Subject: Re: [theme-reviewers] Removal of parent theme's enqueue function




Thanks for the links Justin.
For some reason wp_dequeue_script has never worked for me - I must be using the wrong handler.
For the functions.js this would be what's required <?php wp_dequeue_script( 'twentythirteen-script' ); ?> right?

Date: Sat, 21 Sep 2013 19:04:10 -0500
From: justin at justintadlock.com
To: theme-reviewers at lists.wordpress.org
Subject: Re: [theme-reviewers] Removal of parent theme's enqueue function


  
    
  
  
    Here's the functions you're looking for:

    

    http://codex.wordpress.org/Function_Reference/wp_dequeue_style

    http://codex.wordpress.org/Function_Reference/wp_dequeue_script

    http://codex.wordpress.org/Function_Reference/wp_deregister_style

    http://codex.wordpress.org/Function_Reference/wp_deregister_script

    

    On 9/21/2013 6:59 PM, Zulfikar Nore
      wrote:

    
    
      
      Hello review team,
        

        
        Hope you are enjoying your weekend.
        

        
        Re: Subject line...
        

        
        In a child theme I propose to do this: remove_action(
          'wp_enqueue_scripts', 'twentythirteen_scripts_styles' );
        and then enqueue from my own function - is this acceptable?
        

        
        My reasoning is that I'm changing the CSS and the
          functions.js to unlock the sidebar in order to prevent it from
          overflowing in to the footer.
        I felt doing the way I want to would gives me better
          control on the CSS and javascript and to be honest, I loath
          @import and didn't want to fumble with function priorities.
        

        
        Thanks in advance,
        Zulf
      
      

      
      

      _______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers

    
    

  


_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers 		 	   		  

_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130922/c76af1ab/attachment.html>


More information about the theme-reviewers mailing list