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

Zulfikar Nore zulfikarnore at live.com
Sun Sep 22 00:23:01 UTC 2013


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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130922/fa53f166/attachment.html>


More information about the theme-reviewers mailing list