Tagged: custom fonts, enfold, Fonts
-
AuthorPosts
-
August 16, 2016 at 1:59 am #672928
I’m attempting to use a webfont script for a website using Enfold 3.6.1, using the code below. It has worked on another site, but it is not working on the current site. What am I missing?
In Child Theme Functions.php
function custom_add_to_head() { ?> <script type="text/javascript" src="//fast.fonts.net/jsapi/b8159e8f-3a88-4aff-87d2-231ebf819ad2.js"></script> <link type="text/css" rel="stylesheet" href="//fast.fonts.net/cssapi/b8159e8f-3a88-4aff-87d2-231ebf819ad2.css"/> <?php } add_action('wp_head', 'custom_add_to_head');
In Child Theme Stylesheet
/*Add your own styles here:*/ h1,h2,h3,h4,h5,h6{ font-family:'font-family:'Simplo W00 Black'; } body, p{ font-family:'Simplo W00 Medium'; }
- This topic was modified 8 years, 4 months ago by MtnStreamGroup.
August 18, 2016 at 5:34 am #674013Hey MtnStreamGroup,
Thanks for getting in touch with us!
It may be because of the source of the font. Is the font source a URL and is the URL “fast.fonts.net/cssapi/b8159e8f-3a88-4aff-87d2-231ebf819ad2.css”? That URL returns a 404 page error, meaning it does not exist.
Best regards,
JordanAugust 18, 2016 at 8:41 am #674084I copied the script as it was given to me from Fonts.com. I’ve used a similar script on two different sites one of them being an Enfold site and it has worked without any issues whatsoever. Also, I followed Kriesi’s instructions that I was given before in placement of the script and editing the CSS for the various classes and elements.
I reviewed the previous scripts and the http: is missing from the new script fonts.com gave me.
- This reply was modified 8 years, 4 months ago by MtnStreamGroup.
August 18, 2016 at 10:55 pm #674397I can not get all of the special headings and list image title on the site to become the font I want. What are the appropriate classes for them? NOTE: I found an error in the CSS that was causing the special headings and list image title not to be getting the appropriate font family.
- This reply was modified 8 years, 4 months ago by MtnStreamGroup.
August 21, 2016 at 5:16 am #675183Hi,
Do you still have the issue?
Best regards,
JosueAugust 22, 2016 at 8:12 am #675563I’ve resolved everything except for the submit button on the form.
August 22, 2016 at 5:12 pm #675887Hi,
Add this CSS code:
.button { font-family:inherit; }
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.