Hi,
I was wondering how I could install Cufon into the new Indexhibit...
I tried to do this with the old tutorial but then I noticed there is no template to edit...
Cheers,
Ben
Hi,
I was wondering how I could install Cufon into the new Indexhibit...
I tried to do this with the old tutorial but then I noticed there is no template to edit...
Cheers,
Ben
Cufon has instructions on their site about how to integrate things - you would follow that. Of course there is a template you can edit - /ndxzsite/default/index.php.
Hmm well I tried to add the following lines in the Index.php after uploading the right .js files but I can't seem to make it work...
<script type='text/javascript' src='<%baseurl%><%basename%>/ndxzsite/js/cufon-yui.js'></script>
<script type='text/javascript' src='<%baseurl%><%basename%>/ndxzsite/js/DINPro-Regular_400.font.js'></script>
$(document).ready(function() {
Cufon.replace('li a', { hover: true });
Cufon.replace('p', { hover: true });
Cufon.replace('li.section-title');
Cufon.replace('num');
});
It seems use something like: {{baseurl}}/ndxzsite/
instead of: /ndxzsite/
I'm not sure, but maybe you could try with:
<script type='text/javascript' src='{{baseurl}}/ndxzsite/js/cufon-yui.js'></script>
<script type='text/javascript' src='{{baseurl}}/ndxzsite/js/DINPro-Regular_400.font.js'></script>
Sorry. It's all messed up. I try again:
It seems to use something like:
{{baseurl}}/ndxzsite/
instead of:
<%baseurl%><%basename%>/ndxzsite/
I'm not sure, but maybe you could try with:
<script type='text/javascript' src='{{baseurl}}/ndxzsite/js/cufon-yui.js'></script>
<script type='text/javascript' src='{{baseurl}}/ndxzsite/js/DINPro-Regular_400.font.js'></script>
I'll give it a try.
However the code that I posted worked with the previous version of Indexhibit.
So I just tried to translate it to the new version.
Alright getting there..
I used the following code and putted this in the Index.php file.
However, cufon only becomes active when I click on a section title.
So it doenst work on the main page etc...
Any idea?
$(document).ready(function() {
Cufon.replace('li a', { hover: true });
Cufon.replace('p', { hover: true });
Cufon.replace('li.section-title');
Cufon.replace('num');
});
Okay apparently the forum doesn't want to insert the code tag...
Again:
$(document).ready(function() {
Cufon.replace('li a', { hover: true });
Cufon.replace('p', { hover: true });
Cufon.replace('li.section-title');
Cufon.replace('num');
});
Common forum!
(why doesn't the preview work btw?)
<script type='text/javascript' src='{{baseurl}}/ndxzsite/js/cufon-yui.js'></script>
<script type='text/javascript' src='{{baseurl}}/ndxzsite/js/DINPro-Regular_400.font.js'>< /script>
$(document).ready(function() {
Cufon.replace('li a', { hover: true });
Cufon.replace('p', { hover: true });
Cufon.replace('li.section-title');
Cufon.replace('num');
});
Can I have a look at your website?
This is his site - I had it in my cache from yesterday...
Thanks, Vaska.
Benny, I don't really see the problem. I see the DIN everywhere.
But bennyarts.com/ uses old indexhibit, how to utilize cufon in 2.0? I made changes to code and it doesn't work.
Benny, I don't know if it's going to solve your problem, but with the V2, I think you shoud use:
Cufon.replace('.section_title');
instead of
Cufon.replace('li.section-title');
Yeah,
It's not about my site but another site I'm making.
sannedewilde.com/
As you see, Cufon only gets activated when clicked on 'Untitled'
This thread has been closed, thank you.