WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to add font-face to a child theme (11 posts)

  1. zena1939
    Member
    Posted 1 year ago #

    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.....

  2. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

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

  3. zena1939
    Member
    Posted 1 year ago #

    @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;
    
    }
  4. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

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

  5. zena1939
    Member
    Posted 1 year ago #

  6. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

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

  7. zena1939
    Member
    Posted 1 year ago #

    Thank you!!!

  8. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

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

  9. zena1939
    Member
    Posted 1 year ago #

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

  10. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

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

  11. zena1939
    Member
    Posted 1 year ago #

    Gucci :)

Topic Closed

This topic has been closed to new replies.

About this Topic