0

I have tried to remove custom css using following code and no success. Can't find any further solution to fix it. Any help would be appreciated.

Handle:vc_google_fonts_abril_fatfaceregular Source://fonts.googleapis.com/css?family=Abril Fatface:regular

Handle:rs-plugin-settings Source:https://jjdb2b.kr/wp-content/plugins/revslider/public/assets/css/rs6.css

function custom_dequeue() {
  wp_dequeue_style('vc_google_fonts_abril_fatfaceregular');
  wp_deregister_style('vc_google_fonts_abril_fatfaceregular');
  wp_dequeue_style('rs-plugin-settings');
  wp_deregister_style('rs-plugin-settingsr');
 }

 add_action( 'wp_enqueue_scripts', 'custom_dequeue', 9999 );
 add_action( 'wp_head', 'custom_dequeue', 9999 );
1
  • If dequeing the handles does not work, you will likely need to consult the theme developer's support channels for the appropriate means to do so. It's possible that they are enqueued at a different time in the lifecycle of the request, or that they're using an alternate loading mechanism - in either case it may not be possible to answer this question without intimate familiarity with your specific theme.
    – bosco
    yesterday

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.