• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home » WordPress » Tutorial: Cufon Text Replacement Without A Plugin in WordPress

Tutorial: Cufon Text Replacement Without A Plugin in WordPress

By Nile Flores 1 Comment


Cufón fonts is a jquery script written to help webmasters change the font on their site. This is done without using the CSS @fontface trick or even loading the font file to your own server/ shared hosting web space.

Now, there is a plugin in the WordPress Plugin Repository called WP Cufon that does this, but because I like to not use so many plugins, I am going to lead you through a tutorial that you can bypass the use of this plugin.

Step 1: Download the Cufón jquery files (located in Source section)

Step 2: Convert your font to the cufón replacement.

Step 3: Load your files to your server – preferrably in the js folder in your theme’s folder

Step 4: Open up your theme’s header.php file and add the following lines before the ending head tag

<script src="<?=bloginfo('template_url')?>/js/cufon.js" type="text/javascript"></script>
<script src="<?=bloginfo('template_url')?>/js/YOURCONVERTEDFONTNAME.js" type="text/javascript"></script>

To replace the codes you want, you will have to use javascript code in your header.php file and specify the exact CSS elements that you want to replace.

Also, remember when you converted your Open Type or True Type font over to the cufón file and had to name it… you will need to use that when specifying what font you want to put in.

For example:

<script type="text/javascript">
Cufon.replace('h2.widgettitle', { fontFamily: 'YOURFONTNAMEHERE' });
</script>
<script type="text/javascript">
Cufon.replace('#mainmenu', { fontFamily: 'YOURFONTNAMEHERE', hover: true });
</script>
<script type="text/javascript">
Cufon.replace('.navigation', { fontFamily: 'YOURFONTNAMEHERE', hover: true });
</script>

Note, where YOURFONTNAMEHERE is – that is where you put the exact name of the font. You may have revised the name… but that has to be exact.

Please note that some of these that are links have a hover:true because if it does not, your hover will not work correctly. Also, another note- some fonts may not convert due to licensing and some that have licensing, well… you need to make sure when you are using Cufon text replacement that you are within those licensing guidelines.


Filed Under: WordPress Tagged With: cufon, typography, wordpress, wordpress tutorial

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

Add More Social Network Handles To Your WordPress Author Profile How to Recover a Lost Password in WordPress

Reader Interactions

Comments

  1. Dave Pilgrim says

    November 19, 2011 at 2:16 pm

    I appreciated this blog post because I am so bad at HTML that I am always trying to learn more.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress