Created
August 25, 2016 13:39
-
-
Save bdeleasa/cf350c7935d943e8929b1d057dad9f59 to your computer and use it in GitHub Desktop.
Functions for dequeueing unneeded scripts and styles outputted by the Easy Testimonials plugin.
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 | |
add_action( 'wp_enqueue_scripts', 'themename_dequeue_easy_testimonials_style', 999 ); | |
/** | |
* Removes the Easy Testimonials CSS style because we're styling the testimonials | |
* in our stylesheet. | |
* | |
* @since 1.0.0 | |
* | |
* @param none | |
* @return none | |
*/ | |
function themename_dequeue_easy_testimonials_style() { | |
wp_dequeue_style( 'easy_testimonial_style' ); | |
} | |
add_filter( 'wp_footer', 'themename_dequeue_easy_testimonials_cycle_scripts' ); | |
/** | |
* Only show posts that have a featured image in the Ultimate Posts widget. | |
* | |
* @since 1.0.0 | |
* | |
* @param $args | |
* @return mixed | |
*/ | |
function themename_dequeue_easy_testimonials_cycle_scripts() { | |
wp_dequeue_script( 'gp_cycle2' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment