Cufon Javascripts
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?
Comments are currently closed for this discussion. You can start a new one.
Log in to Harmony
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?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Steve Smith on 14 Nov, 2010 03:48 PM
We've got Cufon working on http://orderedlist.com in Harmony. It could be a path issue. What site are you working on?
3 Posted by Samantha Ingram on 14 Nov, 2010 04:37 PM
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.
Support Staff 4 Posted by Steve Smith on 14 Nov, 2010 10:26 PM
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?
5 Posted by Lukasz Zablocki on 15 May, 2011 02:48 PM
Hi, I can't get the cufon to work on my site as well
7orders.harmonyapp.com
thank you.
Support Staff 6 Posted by Steve Smith on 15 May, 2011 09:31 PM
Lukasz,
Looks like there's a JS error in this file that you're linking to off of Harmony, causing your issue.
7 Posted by Lukasz Zablocki on 16 May, 2011 06:01 PM
thank you - that helped :)
Jonathan Hoyt closed this discussion on 17 May, 2011 04:06 PM.