- This topic has 10 replies, 2 voices, and was last updated 9 years, 2 months ago by Sakin.
-
AuthorPosts
-
July 9, 2015 at 4:18 pm #60755toniParticipant
Hi Sakin,
I’m working in the website http://www.beformentera.com, and I’m interested in changing the font: my client bought the ‘Atrament’ font and wants to use it in his website.I’ve just downloaded the child theme for Catch Box Pro. I ‘ve created a new folder called ‘Fonts’ and I’ve uploaded all the webkits created with FontSquirrel.
Which is the next step?
Thanks in advance!!!
July 9, 2015 at 7:38 pm #60764SakinKeymaster@toni: Then open your child theme style.css and add your css given by FontSquirrel. If you have stylesheet.css in your font folder then you can add the following css:
@import url('fonts/stylesheet.css');
July 10, 2015 at 4:58 pm #60816toniParticipantThank you Sakin,
I added all the css’s adding the url ‘fonts’ to the style.css, but it doesn’t work.
I also added this rule, as a test:
h1, h2, h3 {
font-family: ‘atramentregular’;
font-size: 18px;
color: #ff117a;
}July 10, 2015 at 7:37 pm #60821SakinKeymaster@toni: Can you send me your site URL and let me know what are you trying to do it. Then I can check in.
July 10, 2015 at 9:48 pm #60827toniParticipantSorry Sakin, http://www.beformentera.com
Thx!!
July 10, 2015 at 9:58 pm #60828SakinKeymaster@toni: You have issue in your child theme css. Are you sure that CSS is given by FontSquirrel. There is issue with url it cannot be
'fonts'atrament_regular-webfont.eot'
and should be'fonts/atrament_regular-webfont.eot'
. So, you need to replace that all. For example, replace the following css:@font-face { font-family: 'atramentregular'; src: url('fonts'atrament_regular-webfont.eot'); src: url('fonts'atrament_regular-webfont.eot?#iefix') format('embedded-opentype'), url('fonts'atrament_regular-webfont.woff2') format('woff2'), url('fonts'atrament_regular-webfont.woff') format('woff'), url('fonts'atrament_regular-webfont.ttf') format('truetype'), url('fonts'atrament_regular-webfont.svg#atramentregular') format('svg'); font-weight: normal; font-style: normal; }
with this
@font-face { font-family: 'atramentregular'; src: url('fonts/atrament_regular-webfont.eot'); src: url('fonts/atrament_regular-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/atrament_regular-webfont.woff2') format('woff2'), url('fonts/atrament_regular-webfont.woff') format('woff'), url('fonts/atrament_regular-webfont.ttf') format('truetype'), url('fonts/atrament_regular-webfont.svg#atramentregular') format('svg'); font-weight: normal; font-style: normal; }
July 10, 2015 at 10:51 pm #60831toniParticipantI changed the apostrophe for the slash, but it’s the same.
July 11, 2015 at 2:45 pm #60847toniParticipantHi Sakin,
I modified some issues and now it works, but only with h1.July 11, 2015 at 9:20 pm #60853SakinKeymaster@toni: Can you let me know which H1 are you talking about. As When I check in your site, the H1 have been changed.
July 11, 2015 at 11:39 pm #60857toniParticipantIt only changed the title of every page:http://beformentera.com/concept-store/
I thought it was h1, and if I add h2, h3, doesn’t work.July 12, 2015 at 2:43 am #60861 -
AuthorPosts
- The topic ‘Add fonts’ is closed to new replies.