Add css file to compare template
-
Hi Yith team,
Thank you for your awesome plugin!!!
I’m a theme developer. I use your plugin for all my themes :). Usually, I have to customize your compare template (add custom css, font, …). I add the link tag to the wp_head action. But now, themeforest does not allow me to do this :(. I know there is a remove_all_styles() function in your plugin. It removes all files which are added by wp_enqueue_style(). I have a suggestion: Could you please add a filter to your remove_all_styles() function? It will allow me and other authors to keep some our css files. Below is my example:
public function remove_all_styles() {
global $wp_styles;
$keep_handles = apply_filters( ‘yith_woocompare_keep_handles’, array() );
$wp_styles->queue = array_intersect( $wp_styles->queue, (array) $keep_handles );
}I think a lot of authors will like my idea ??
Best regards,
- The topic ‘Add css file to compare template’ is closed to new replies.