Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › instruction to use a custom font
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › instruction to use a custom font
- This topic has 39 replies, 4 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
April 23, 2015 at 2:44 pm #167740
hi,
could you please provide me with some instructions or tutorial to load and activate a custom font on my site?
thank you
April 23, 2015 at 3:21 pm #167761Hi,
Not sure if you already saw this documentation.
http://neighborhood.swiftideas.net/documentation/#font-options-Rui
April 23, 2015 at 3:25 pm #167764Hi Rui,
yes i got it..
i think the font i would like to use is not on the fontdeck list / google etc..
so my question is if there is a way to load a custom font into the theme
thank you
April 23, 2015 at 3:27 pm #167766the font i would like to load is a .ttf
April 23, 2015 at 8:11 pm #167864So:
i follow this guide that seems to work for other people:
http://dante.swiftideas.net/documentation/#font-optionsAfter generation of font files with font squirrel, i uploaded files using media manager and i pasted this code into the theme options CSS. Could you please check if there is something wrong?.. i cannot see the new file on the theme…thank you
@font-face {
font-family: ‘letter_gothic_l_cymedium’;
src: url(‘letter_gothic_l_cy_medium-webfont.eot’);
src: url(‘letter_gothic_l_cy_medium-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘letter_gothic_l_cy_medium-webfont.woff2’) format(‘woff2’),
url(‘letter_gothic_l_cy_medium-webfont.woff’) format(‘woff’),
url(‘letter_gothic_l_cy_medium-webfont.ttf’) format(‘truetype’),
url(‘letter_gothic_l_cy_medium-webfont.svg#letter_gothic_l_cymedium’) format(‘svg’);
font-weight: normal;
font-style: normal;}
// BODY FONT
body, h6 {
font-family: “letter_gothic_l_cymedium”, Arial, Helvetica, Tahoma, sans-serif;
}
// HEADINGS FONT
h1, h2, h3, h4, h5, .custom-caption p, span.dropcap1, span.dropcap2, span.dropcap3, span.dropcap4, .spb_call_text, .impact-text, .impact-text-large, .testimonial-text, .header-advert, .sf-count-asset .count-number, #base-promo, .sf-countdown, .sf-icon-character, .fancy-heading h1 {
font-family: “letter_gothic_l_cymedium”, Arial, Helvetica, Tahoma, sans-serif;
}April 24, 2015 at 3:54 am #167931Hi,
Where did you uploaded custom fonts? Where did you insert the font face css code?
Thanks
MohammadApril 24, 2015 at 5:40 am #167943Hi
I uploaded don’t files thought the media manager… I don’t know exactly where they are gone, maybe in the media library?… If you tell me the exact folder where they should be placed maybe I can upload them via ftp
Font face code was copied into theme options > general options > custom css
April 24, 2015 at 6:04 am #167944Hi,
Please go to Admin -> Media -> Find fonts and click to edit to get the absolute path of fonts. Copy this path and paste at font face css code to their respective line.Thanks
MohammadApril 24, 2015 at 6:12 am #167949Hi sorry but I’m not so familiar with this things
Can you tell me exactly where I will find path and on which lines I’ve to paste it?
Thank you
April 24, 2015 at 6:51 am #167960Hi,
You have code like this :-src: url('letter_gothic_l_cy_medium-webfont.eot');
Now paste the full url path instead of letter_gothic_l_cy_medium-webfont.eot.
You have to so same things for all code like this.
src: url('letter_gothic_l_cy_medium-webfont.eot');
Thanks
MohammadApril 24, 2015 at 7:45 am #167979i’m sorry but i cannot find the absolute path inside media file..where should it exactly be?
April 24, 2015 at 7:49 am #167980Hi,
Please upload all fonts at this directory path /wp-content/themes/neighborhood/css/font/ and change the path according it.Thanks
MohammadApril 24, 2015 at 7:51 am #167981you mean all these files? (see attached image) or just the font files?
Attachments:
You must be logged in to view attached files.April 24, 2015 at 8:14 am #167989Ok, i realized i have to upload only the 5 font files and not the css files..
now: where i have to change the path?
this is the css i glued into theme options > general options > custom CSS , please check whats wrong thank you.
@font-face {
font-family: ‘letter_gothic_l_cymedium’;
src: url(‘letter_gothic_l_cy_medium-webfont.eot’);
src: url(‘letter_gothic_l_cy_medium-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘letter_gothic_l_cy_medium-webfont.woff2’) format(‘woff2’),
url(‘letter_gothic_l_cy_medium-webfont.woff’) format(‘woff’),
url(‘letter_gothic_l_cy_medium-webfont.ttf’) format(‘truetype’),
url(‘letter_gothic_l_cy_medium-webfont.svg#letter_gothic_l_cymedium’) format(‘svg’);
font-weight: normal;
font-style: normal;}
// BODY FONT
body, h6 {
font-family: “letter_gothic_l_cymedium”, Arial, Helvetica, Tahoma, sans-serif;
}
// HEADINGS FONT
h1, h2, h3, h4, h5, .custom-caption p, span.dropcap1, span.dropcap2, span.dropcap3, span.dropcap4, .spb_call_text, .impact-text, .impact-text-large, .testimonial-text, .header-advert, .sf-count-asset .count-number, #base-promo, .sf-countdown, .sf-icon-character, .fancy-heading h1 {
font-family: “letter_gothic_l_cymedium”, Arial, Helvetica, Tahoma, sans-serif;
}April 24, 2015 at 9:00 am #168015Hi,
I have marked bold the css code to change the path.
@font-face {
font-family: ‘letter_gothic_l_cymedium’;
src: url(‘letter_gothic_l_cy_medium-webfont.eot’);
src: url(‘letter_gothic_l_cy_medium-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘letter_gothic_l_cy_medium-webfont.woff2’) format(‘woff2’),
url(‘letter_gothic_l_cy_medium-webfont.woff’) format(‘woff’),
url(‘letter_gothic_l_cy_medium-webfont.ttf’) format(‘truetype’),
url(‘letter_gothic_l_cy_medium-webfont.svg#letter_gothic_l_cymedium’) format(‘svg’);
font-weight: normal;
font-style: normal;}
Thanks
Mohammad -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.