Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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';
    }
    #674013

    Hey 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,
    Jordan

    #674084

    I 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.

    #674397

    I 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.

    #675183

    Hi,

    Do you still have the issue?

    Best regards,
    Josue

    #675563

    I’ve resolved everything except for the submit button on the form.

    #675887

    Hi,

    Add this CSS code:

    .button  {
        font-family:inherit;
    }
    

    Best regards,
    Josue

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.