Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4273

    Feature request: Can you add the ability to turn off Cufon?

    I have completed it manually by commenting out code in…

    brightbox/framework/php/class-style-generator.php

    brightbox/includes/admin/register-styles.php

    brighbox/js/avia.js

    Unfortunately,

    Now I have to test everything, the site is much slower now.

    brightbox/framework/php/class-style-generator.php

    //function cufon($rule)

    //{

    // $rule_split = explode(‘__’,$rule);

    // if(!isset($rule_split[1])) $rule_split[1] = 1;

    // $this->extra_output .= “n<!– cufon font replacement –>n”;

    // $this->extra_output .= “<script type=’text/javascript’ src='”.AVIA_JS_URL.”fonts/cufon.js’></script>n”;

    // $this->extra_output .= “<script type=’text/javascript’ src='”.AVIA_JS_URL.”fonts/”.$rule_split[0].”.font.js’></script>n”;

    // $this->extra_output .= “<script type=’text/javascript’>ntvar avia_cufon_size_mod = ‘”.$rule_split[1].”‘; ntCufon.replace(‘”.$rule.”‘,{ fontFamily: ‘cufon’, hover:’true’ }); n</script>n”;

    //}

    brightbox/includes/admin/register-styles.php

    // array(

    // ‘elements’ => ‘.cufon_headings’,

    // ‘key’ => ‘cufon’,

    // ‘value’ => avia_get_option(‘font_heading’)

    // ),

    brighbox/js/avia.js

    // avia_cufon_helper();

    //function avia_cufon_helper()

    //{

    // var elString = ‘h1, h2, h3, h4, h5, h6, .custom_button';

    // var els = jQuery(elString);

    // if(jQuery.browser.msie && jQuery.browser.version < 9)

    // {

    // els = els.not(‘.feature_excerpt h1′);

    // }

    // if(typeof avia_cufon_size_mod == ‘string’ && avia_cufon_size_mod != “1”)

    // {

    // avia_cufon_size_mod = parseFloat(avia_cufon_size_mod);

    // els.each(function()

    // {

    // $size = parseInt(jQuery(this).css(‘fontSize’));

    // jQuery(this).css(‘fontSize’, $size * avia_cufon_size_mod)

    // });

    // }

    // els.addClass(‘cufon_headings’);

    //}

    CSS added to custom.css

    h1, h2, h3, .post-entry h1, .post-entry h2, .post-entry h3, .post-entry h4, .post-entry h5, .post-entry h6 {font-family: georgia,garamond,serif !important;}

    If you could help, that would be great.

    #45683

    Hey,

    I’ll report it to Kriesi.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Remove Cufon Option’ is closed to new replies.