• Resolved mwhc00

    (@mwhc00)


    I’m such a newbie. Do we add the load font CSS in the template file, body.php like below?

    <style>
    /* Load font */
    @font-face {
    font-family: ‘MyFont’;
    font-style: normal;
    font-weight: normal;
    src: local(‘MyFont’), local(‘MyFont’), url(<?php echo $this->get_template_path(); ?>/fonts/Montserrat-Regular.ttf) format(‘truetype’);
    }
    </style>

    I tried but all I got was a blank page.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where to load custom font?’ is closed to new replies.