Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #100856
    Jodi
    Participant

    Is it possible to add a font I like, but is not in your list?

    #100898
    Mahesh
    Keymaster

    @ourherbfarm: Yes, this is possible through Custom CSS. First upload you desired font then go to Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS box and add the following CSS:

    @font-face {
        font-family: myCustomFont;
        src: url('link_to_source');
    }

    then use as

    p.some_class {
    	font-family: myCustomFont;
    }

    Let me know if any problem.

    Regards,
    Mahesh

    #100964
    Jodi
    Participant

    Mahesh,
    Thank you for your quick reply. I tried that and it didn’t work. My main site is http://ourherbfarm.com
    I put the code in your way (with the first src url, like below), deleted that and added code again with all the links like you see below (these are identicle to the font.css in root folder for main site)

    @font-face {
        font-family: 'neucharegular';
        src: url('http://ourherbfarm.com/css/neucha-webfont.eot');
        src: url('http://ourherbfarm.com/css/neucha-webfont.eot?#iefix') format('embedded-opentype'),
             url('http://ourherbfarm.com/css/neucha-webfont.woff') format('woff'),
             url('http://ourherbfarm.com/css/neucha-webfont.ttf') format('truetype'),
             url('http://ourherbfarm.com/css/neucha-webfont.svg#neucharegular') format('svg');
    }

    I would like to know if I can just use the theme’s style sheet to make adjustment instead of using the interface in wordpress admin. ??

    Also, where are the fonts uploaded in wordpress that would display in the drop down menu in “appearance” in admin? I could just upload them there. That way I could use one at a later date. I only want to use the font for various heading tags.

    I so love your template (it was a difficult choice between Helena and Evolution 🙂 but you put Helena on sale, so I couldn’t resist. I have always used free themes and worked with them until I tweaked them where I wanted. This is the first time I purchased a theme and I am so grateful for your work. Please don’t think I am hashing it up when you see the site. Only worked on it a few hours. I will get it 🙂

    My Best Regards,
    Jodi

    #100983
    Mahesh
    Keymaster

    @ourherbfarm: Please use the following CSS instead:

    @font-face {
        font-family: 'neucharegular';
        src: url('http://ourherbfarm.com/css/neucha-webfont.eot');
        src: url('http://ourherbfarm.com/css/neucha-webfont.eot?#iefix') format('embedded-opentype'),
             url('http://ourherbfarm.com/css/neucha-webfont.woff') format('woff'),
             url('http://ourherbfarm.com/css/neucha-webfont.ttf') format('truetype'),
             url('http://ourherbfarm.com/css/neucha-webfont.svg#neucharegular') format('svg');
    }
    
    .entry-title {
        font-family: 'neucharegular';
    }

    Note: This is for titles just for testing, please change as you desire.

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add additional font’ is closed to new replies.