Using Webfonts - by SherinSuzi - on WordPress WooCommerce support

Solved1 reply2 participantsUpdated by Jack Richardson

  • Avatar: SherinSuzi
    SherinSuzi
    Participant

    Hello,

    How would I install a new webfont to my site?

    Could I install in such a way that I would be able to access the font via the Typography item under Theme Options?

    Or would I have to edit the CSS? In this case, could I add the code to custom.css?

    Thank you.

    1 Answer

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    You can not add your font in theme options, but you can add it to custom.css with @font-face, see example:

    @font-face {
    font-family: 'Aleo-Regular';
    src: url('css/fonts/aleo-regular-webfont.eot');
    src: url('css/fonts/aleo-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('css/fonts/aleo-regular-webfont.woff') format('woff'),
    url('css/fonts/aleo-regular-webfont.ttf') format('truetype'),
    url('css/fonts/aleo-regular-webfont.svg#aleoregular') format('svg');
    font-weight: normal;
    font-style: normal;
    }
    
    h1,h2,h3,h4,h5,h6{
    font-family:"Aleo-Regular";
    }

    Regards,
    Jack Richardson

The issue related to '‘Using Webfonts’' has been successfully resolved, and the topic is now closed for further responses