• Resolved James

    (@hydn)


    If like me page load performance is very important you can remove the CSS from the header.

    Wp-recaptcha adds this to EVERY PAGE!!!:
    <link rel="stylesheet" type="text/css" href="https://coolvibe.com/wp-content/plugins/wp-recaptcha/recaptcha.css" />

    I ONLY use wp-recaptcha for new registrations. So CSS on every blog page was just pointless!

    I removed by changing this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Copy everything from /wp-content/plugins/wp-recaptcha/wp-recaptcha.css into your themes main stylesheet.

    Open /wp-content/plugins/wp-recaptcha/wp-recaptcha.php

    Find function re_css() {

    Change the whole function to look like this:

    function re_css() {
    	return true;
    	/*
       global $recaptcha_opt, $wpmu;
    
       if (!defined('WP_CONTENT_URL'))
          define('WP_CONTENT_URL', '/wp-content');
    
       $path = WP_CONTENT_URL . '/plugins/wp-recaptcha/recaptcha.css';
    
       if ($wpmu == 1)
    		$path = WP_CONTENT_URL . '/mu-plugins/wp-recaptcha/recaptcha.css';
    
       echo '<link rel="stylesheet" type="text/css" href="' . $path . '" />';
       */
    }

    Done.

    We just changed it in our blog and found your question https://pr11.de

    Thread Starter James

    (@hydn)

    Same issue after latest update. How do you resolve? The above post is no longer a valid fix.

    Thread Starter James

    (@hydn)

    ????????????????????????????????????????

    Thread Starter James

    (@hydn)

    add_action('wp_head', array(&$this, 'register_stylesheets')); // make unnecessary: instead, inform of classes for styling

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP-reCAPTCHA] How to: Remove recaptcha CSS from header.’ is closed to new replies.