New Landing How can we help? Atelier External fonts in

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Atelier
  • #316300
    filipecardigosoliveira
    Member
    Post count: 73

    Hello, I’m using a font from an external server that must embedded in the <head>.
    Every time I update Atelier theme I loose the code I’ve inserted.
    Is it possible to add it on functions.php of my Child Theme so it stays?
    Thanks

    #316439
    David Martin – Support
    Moderator
    Post count: 20834

    Yes, you would use the supplied child theme to add the code required.

    What font service? Most have a WP plugin to avoid you having such issues.

    #316441
    filipecardigosoliveira
    Member
    Post count: 73

    It’s from typotheque > https://www.typotheque.com
    They don’t have any WP plugin 🙁

    #316444
    David Martin – Support
    Moderator
    Post count: 20834

    Do they provide you with a font file zip of the fonts? You can upload custom fonts in Theme Options => Font Options.

    #316445
    filipecardigosoliveira
    Member
    Post count: 73

    No, they just generate a code for css implementation.

    #316447
    David Martin – Support
    Moderator
    Post count: 20834

    In that case, add the code to your child theme functions.php file in order to load the code into the header.

    Let me know if you are not sure how to do this.

    Thanks.

    #316448
    filipecardigosoliveira
    Member
    Post count: 73

    Your help will be appreciated. Thanks!

    #316449
    David Martin – Support
    Moderator
    Post count: 20834

    Please install and activate the supplied child theme, inside the child theme functions.php file paste this:

    // Add scripts to wp_head()
    function sf_child_theme_head_script() { ?>
        <!-- Your code here -->
    <?php }
    add_action( 'wp_head', 'sf_child_theme_head_script' );
    #316450
    filipecardigosoliveira
    Member
    Post count: 73

    Worked perfectly, thanks so much!

    #316451
    David Martin – Support
    Moderator
    Post count: 20834

    Very glad to help you out.

    If you have found the theme/support useful, we appreciate it if you can leave feedback on our item if you have the time as it really helps us out.

    Thanks,
    David.

    #316453
    filipecardigosoliveira
    Member
    Post count: 73

    Done √

    #316455
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Thanks for the review.

    -Rui

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register