Cufon Javascripts

Samantha Ingram's Avatar

Samantha Ingram

14 Nov, 2010 03:29 AM via web

Just curious.. I can't seem to get the javascript for Cufon to actually be functional in the template. Anyone have a solution/work around?

  1. Support Staff 2 Posted by Steve Smith on 14 Nov, 2010 03:48 PM

    Steve Smith's Avatar

    We've got Cufon working on http://orderedlist.com in Harmony. It could be a path issue. What site are you working on?

  2. 3 Posted by Samantha Ingram on 14 Nov, 2010 04:37 PM

    Samantha Ingram's Avatar

    http://clamordell.harmonyapp.com
    I'm newly registered, trying to see if this is something I'm willing to move over to as I'm currently writing all my templates by hand and hosted under mediatemple.

  3. Support Staff 4 Posted by Steve Smith on 14 Nov, 2010 10:26 PM

    Steve Smith's Avatar

    So the main issue is that you have html in one of your javascript files. Instead of having what's in your cufon.js file, you'd make your header.inc look something like this:

    <html>
    <head>
    <title>{% title %}</title>
    {{ 'master,style' | stylesheets }}

    {{ 'jquery.1.4.2' | google_javascript }}
    <script src="http://cufon.shoqolate.com/js/cufon-yui.js" type="text/javascript"></script>
    {{ 'jane-austen.cufonfonts,cufon' | javascripts }}
    </head>

    <body>
      <img src="/theme/4cdf3640dabe9d3f1b000007/stylesheets/images/header1.png" usemap="#Map" class="header" border="0px">
    <div id="wrapper">
      <div id="content">

    and then make your cufon.js file something like this:

    Cufon.replace('h1, h2, h3, .title, .titleuppercase', { fontFamily: 'JaneAusten', hover: true });

    Make sense?

  4. 5 Posted by Lukasz Zablocki on 15 May, 2011 02:48 PM

    Lukasz Zablocki's Avatar

    Hi, I can't get the cufon to work on my site as well

    7orders.harmonyapp.com

    thank you.

  5. Support Staff 6 Posted by Steve Smith on 15 May, 2011 09:31 PM

    Steve Smith's Avatar

    Lukasz,

    Looks like there's a JS error in this file that you're linking to off of Harmony, causing your issue.

  6. 7 Posted by Lukasz Zablocki on 16 May, 2011 06:01 PM

    Lukasz Zablocki's Avatar

    thank you - that helped :)

  7. Jonathan Hoyt closed this discussion on 17 May, 2011 04:06 PM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

17 May, 2012 10:45 PM
20 Mar, 2012 05:05 PM
26 Apr, 2012 01:40 AM
07 Mar, 2012 04:42 PM