[Defender] Problem between Defender and Template Extra (elegant theme)

Hi

there is a design problem (Like CCS not loaded) in defender pro (also in branda) when my template Extra (From elegant Thème is actived.

  • Ash
    • WordPress Hacker

    Hello Frédéric

    If you want to make the change, then please go to /themes/Extra/framework/functions.php line no 525 to 540 and replace

    function et_add_wp_version( $classes ) {
    	global $wp_version;
    
    	// add 'et-wp-pre-3_8' class if the current WordPress version is less than 3.8
    	if ( version_compare( $wp_version, '3.7.2', '<=' ) ) {
    		if ( 'body_class' === current_filter() )
    			$classes[] = 'et-wp-pre-3_8';
    		else
    			$classes = 'et-wp-pre-3_8';
    	} else {
    		if ( 'admin_body_class' === current_filter() )
    			$classes = 'et-wp-after-3_8';
    	}
    
    	return $classes;
    }

    with

    function et_add_wp_version( $classes ) {
        global $wp_version;
    
        if ( version_compare( $wp_version, '3.7.2', '<=' ) ) {
            $classes .= ' et-wp-pre-3_8';
        } else {
            $classes .= ' et-wp-after-3_8';
        }
    
        return $classes;
    }

    But it's better to get in touch with the theme support team. They should be able to check other criteria too that is related to this code.

    Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.