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

    I am trying to replace the cufon font file quicksand_all.font.js by renaming another font.js file but it isn’t working. Could you walk me through the process for Cleancut.

    Thanks

    #33709

    You’ve two options:

    1) The easy one – but a hack:

    Rename your font.js to quicksand.font.js and replace "font-family":"XY" in your font.js file with "font-family":"Quicksand"

    2) Long way:

    Change following code in header_includes.php located under framework > helper_functions > header_includes.php

    $quicksand = get_bloginfo('template_url')."/js/quicksand.font.js";
    wp_enqueue_script('quicksand',$quicksand,array('jquery'));

    to the font you’re using so i.e.

    $sansation = get_bloginfo('template_url')."/js/sansation.font.js";
    wp_enqueue_script('sansation',$sansation,array('jquery'));

    and change the word “quicksand” to your font in custom.js:

    Cufon.replace('h1,h2,h3,h4,h5,h6',{

    fontFamily: 'quicksand',
    hover:'true',
    textShadow: colorset[0]
    });

    Cufon.replace('#wrapper_heading h2',{

    fontFamily: 'quicksand',
    hover:'true',
    textShadow: colorset[1]

    });

    Cufon.replace('.heading',{ fontFamily: 'quicksand', hover:'true'});
    }

    The first solution is easier and less complex, because you need to find out the EXACT font family for the second solution.

    The Dude

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

The topic ‘Replace Cufon font in Cleancut’ is closed to new replies.