WordPress.org

Ready to get started?Download WordPress

Forums

How to change font? (4 posts)

  1. eraleks
    Member
    Posted 2 years ago #

    Hi!

    I'm using a theme on my site that apparently doesn't support the Norwegian letters in headings. In paragraph text in posts and pages it works fine though.

    How can I fix this?

    I've been trying to look at the css coding, but since I really don't know css that much I just couldn't understand how I could fix it.

    Here is my page: http://www.stage.kultursommerleir.no

    Help is really appreciated =)

  2. mookasaurus
    Member
    Posted 2 years ago #

    It seems like your theme is using Cufon which is Javascript font replacement so it can't be changed just by CSS. I guess the theme might have an option to change the font somehow?

    Here's some instruction about Cufon.

    http://davidwalsh.name/cufon

  3. eraleks
    Member
    Posted 2 years ago #

    Unfortunately it doesnt seem like the theme has an option to change font. I didnt understand how i could change the font with cufon, are you familiar with this? I dont know css that much. Ive tried to find somewhere in the code that determines what font is used for the headings (h1), so i just could change that to helvetica or something bit I couldnt find where or how (of it is possible at all this way?)

    Tanks for helping me :-)

  4. mookasaurus
    Member
    Posted 2 years ago #

    It's a commercial theme so I can't really see how the Javascript is included but I'm pretty sure it's either linked from functions.php or header.php.

    I think what you can do is search for the word "cufon" in your theme with your text editor. If you see any Cufon javascript in any file, just remove it. Make sure to check the console if there's any Javascript error in case you missed any spot. Once all of the Cufon scripts are removed, you can change the font with CSS.

    And if you want different fonts for your headings, using @font-face method is better than Cufon. There're some good stuff on Google web fonts and Fontsquirrel, you can check it out.

    http://www.fontsquirrel.com/
    http://www.google.com/webfonts

    Hope that helps!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.