Custom font insertion
-
Hi,
In the custom template, I successfully added a normal Gotham font but for some reason, other versions of the same font won’t affect template. For example, I am not able to apply a thin and light font.
This is the CSS code that I am using. Fonts are inside fonts folder inside the template folder.
/* Load font */
@font-face {
font-family: ‘Gotham’;
font-style: normal;
font-weight: normal;
src: local(‘Gotham Medium’), local(‘Gotham-Medium’), url(<?php echo $this->get_template_path(); ?>/fonts/Gotham-Medium.ttf) format(‘truetype’);
}@font-face {
font-family: ‘Gotham’;
font-style: normal;
font-weight: thin;
src: local(‘Gotham Thin’), local(‘Gotham-Thin’), url(<?php echo $this->get_template_path(); ?>/fonts/Gotham-Thin.ttf) format(‘truetype’);
}@font-face {
font-family: ‘Gotham’;
font-style: normal;
font-weight: light;
src: local(‘Gotham Light’), local(‘Gotham-Light’), url(<?php echo $this->get_template_path(); ?>/fonts/Gotham-Light.ttf) format(‘truetype’);
}Thank you
- The topic ‘Custom font insertion’ is closed to new replies.