• 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,

    • This topic was modified 8 years, 5 months ago by Stormit.
Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    thank you for this suggestion. I will pass this to the plugin developers so they can consider add this in next plugin update.

    Have a nice day.:)

Viewing 1 replies (of 1 total)
  • The topic ‘Add css file to compare template’ is closed to new replies.