Coding-Spot

You are not connected. Please login or register

 
 

About Cufon and add class.

Message (Page 1 of 1)


 
Senior Member

Posted on Thu May 30, 2013 3:25 am

 
hello mr.mark or someone on this forum :)
I want to ask :D

how to add cufon for text in navibar and title forum (post, topic, last post)
more details you can see this image:



how to change text with cufon?

this my code ^_^
Code:
<script src="http://cufon.shoqolate.com/js/cufon-yui.js" type="text/javascript"></script>
<script src="http://static.tumblr.com/hhedat8/TpQmmtm7s/hemi-head-426.cufonfonts.js" type="text/javascript"></script>
<script>
Cufon.replace('#right .module-title', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
Cufon.replace('#right td.catHead', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
  Cufon.replace('.hierarchy a.forumlink', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
</script>

please help me ^_^

thanks before :D
http://budokai.indonesianforum.net/



View user profile



 
Administrator
Administrator

Posted on Thu May 30, 2013 4:52 am

 
Here:
Code:
<script src="http://cufon.shoqolate.com/js/cufon-yui.js" type="text/javascript"></script>
<script src="http://static.tumblr.com/hhedat8/TpQmmtm7s/hemi-head-426.cufonfonts.js" type="text/javascript"></script>
<script>
Cufon.replace('#right .module-title', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
Cufon.replace('#right td.catHead', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
Cufon.replace('.hierarchy a.forumlink', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
Cufon.replace('a.mainmenu', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
Cufon.replace('table.forumline th', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
</script>



View user profile http://coding-spot.darkbb.com



 
Senior Member

Posted on Thu May 30, 2013 5:42 am

 
ok its work mr.mark :D

but if to sub forum and topic, how?? :D
more details you can see this ^_^



please help me.. ^_^

thanks before mr.mark :)



View user profile



 
Administrator
Administrator

Posted on Thu May 30, 2013 5:56 am

 
Add this on the third script:
Code:
Cufon.replace('.nav', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });



View user profile http://coding-spot.darkbb.com



 
Senior Member

Posted on Thu May 30, 2013 6:32 am

 
ok mr.mark work, :D

and last quest about cufon, i need change size for my cufon, like this
http://www.duelacademy.net/forum


and before size for my cufon, very small :(




please help me mr.mark ^_^

thanks before :D



View user profile



 
Administrator
Administrator

Posted on Thu May 30, 2013 6:38 am

 
Add this beside the Cufon:
Code:
.set('fontSize', '14px')

So it should be something like this one:
Code:
Cufon.set('fontSize', '14px').replace('.nav', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });



View user profile http://coding-spot.darkbb.com



 
Senior Member

Posted on Thu May 30, 2013 7:28 am

 
yes, its work ^^ xD

mr.mark :)
I forgot, what about all the widgets on the portal and title topic, what class? :D

i look in DA change title topic with cufon ^^

http://www.duelacademy.net/t26925-turbo-duel-arena-wotnnd#258966

and this my widget in portal


how to change to cufon?
please help me mr.mark :D

thanks before :D



View user profile



 
Administrator
Administrator

Posted on Thu May 30, 2013 8:07 am

 
The class is:
Code:
.module-title

and:
Code:
td.t-title



View user profile http://coding-spot.darkbb.com



 
Senior Member

Posted on Thu May 30, 2013 8:51 am

 
i forgot again mr.mark >.<
what class for footer and sub forum?


for footer, only this :)


thanks before mr.mark :D



View user profile



 
Administrator
Administrator

Posted on Thu May 30, 2013 9:28 am

 
Anything more? :o

Btw, here:
Code:
.text

and this one:
Code:
td.row1.over span.gensmall a.gensmall



View user profile http://coding-spot.darkbb.com



 
Senior Member

Posted on Thu May 30, 2013 9:32 am

 
problem solved :D

thanks before ^__^

yeahhhh, thanks mr,mark :D



View user profile



 
Administrator
Administrator

Posted on Thu May 30, 2013 9:43 am

 
Since the problem is now solved i will locked this and move to archive section. ~Locked and Moved Happy



View user profile http://coding-spot.darkbb.com


#13

Sponsored content


 

Posted Today at 2:32 pm

 





Message (Page 1 of 1)

Permissions in this forum:
You cannot reply to topics in this forum

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None