• I am trying to change the font for the site title to replace the text normally included in this logo. The site can be viewed here.

    I am having trouble getting the font switch to work and wonder if someone can take a look and spot what I am missing. The three font variations are loaded in the same directory as the theme CSS file.

    @font-face {
      font-family: 'MTCORSVA';
      src: url('MTCORSVA.eot'); /* IE9 Compat Modes */
      src: url('MTCORSVA.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
           url('MTCORSVA.woff') format('woff'), /* Pretty Modern Browsers */
           url('MTCORSVA.ttf')  format('truetype'), /* Safari, Android, iOS */
    }
    
    #branding #site-details h1#site-title a {
    font-family: 'MTCORSVA',Helvetica, Arial, sans-serif;important!
    }

    Any suggestions?

    Thank you

Viewing 1 replies (of 1 total)
  • Hello,
    Please try to add following codes in functions.php

    function load_fonts() {
    wp_register_style('MTCORSVAeot',get_template_directory().'/path/to/font');
    wp_enqueue_style( 'MTCORSVAeot');
    // same for other fonts
    }
    add_action('wp_print_styles', 'load_fonts');
Viewing 1 replies (of 1 total)
  • The topic ‘Font change for site title?’ is closed to new replies.