[Resolved] adding self-hosted fonts

  • Author
    Posts
  • #15600

    Andrew Misplon
    Keymaster

    Hi Alex

    You’ll need to load your self-hosted font in the child stylesheet or a Custom CSS location. See the heading “How to Host Google Fonts on Your Own Server”, the styles example is in that section. https://webdesign.tutsplus.com/tutorials/how-to-self-host-google-fonts–cms-34775.

    Once you’ve loaded your fonts you can stop Polestar from loading Google Fonts by adding the following to your child theme functions file:

    function polestar_child_remove_google_fonts() {
    
    	wp_dequeue_style( 'polestar-fonts' );
    
    }
    add_action( 'wp_enqueue_scripts', 'polestar_child_remove_google_fonts', 11 );

    Give that a try and let me know how you get on.

    #15605

    drosselbarto
    Participant
    This reply has been marked as private.
    #15606

    Andrew Misplon
    Keymaster

    Hi Alex

    Sure, no problem. Please, consider purchasing Polestar Premium. You can then email [email protected] with WordPress login details and a FTP username and password, I’ll lend a hand from there.

    #15612

    drosselbarto
    Participant
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Scroll to top