Support » Fixing WordPress » How to add font-face to a child theme

  • Resolved zena1939

    (@zena1939)


    I think I have the child theme up and running decently. But every time I try to add a font face to the style.css it breaks the site. I tried giving the font face the url of the child theme but maybe I’m doing it work.
    Help please…..

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    Post here the font face CSS you’re adding that breaks the site.

    zena1939

    (@zena1939)

    @font-face {
    
    	font-family: 'CalligraffitiRegular';
    
    	src: url('childminimatica/fonts/Calligraffiti-webfont.eot');
    
    	src: url('childminimatica/fonts/Calligraffiti-webfont.eot?#iefix') format('embedded-opentype'), 
    
                 url('childminimatica/fonts/Calligraffiti-webfont.woff') format('woff'),
    
                 url('childminimatica/fonts/Calligraffiti-webfont.ttf') format('truetype'), 
    
                 url('childminimatica/fonts/Calligraffiti-webfont.svg#CalligraffitiRegular') format("svg");
    
    	font-weight: normal;
    
    	font-style: normal;
    
    }
    Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    Can you post a link to the webpage that is broken from this code?

    zena1939

    (@zena1939)

    Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    Add a semi-colon on the end of your import CSS code.

    zena1939

    (@zena1939)

    Thank you!!!

    Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    And Thank you again, Zena1939, for contributing to the WordPress community 🙂

    zena1939

    (@zena1939)

    And do you know how I can get rid of that footer widget before the navigation bar?

    Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    I’d continue that topic on the thread you started for it.

    zena1939

    (@zena1939)

    Gucci 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to add font-face to a child theme’ is closed to new replies.