Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1238886

    meir d
    Participant

    hi,

    thnaks for your help, however it doen’t seem to change anything.

    i think i will have to renounce on using goole fonts and will upload a font and use face font like i did before.

    thnaks anyway,

    Meir

    #1238906

    Paul R
    Moderator

    You’re welcome! 🙂

    #1241893

    meir d
    Participant

    thanks,

    it doesn’t seem to work on mobiles and other broser 🙁

    i have uploaded 2 other fonts “almoni-tzar-100” and “almoni-tzar-300″ to the server, and tried to use face font but with no succes…can you please have a look? thanks:

    @font-face {
    font-family: ‘almoni-tzar-100’;
    src: url(‘danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-100.eot’);
    src: url(‘http:// ‘danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-100.eot?#iefix’) format(’embedded-opentype’),
    url(‘http:// ‘danon.org.il /public_html/wp-content/fonts/almoni-tzar-aaa-100.woff’) format(‘woff’),
    url(‘http:// ‘danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-100.ttf’) format(‘truetype’),
    url(‘http:// ‘danon.org.il /public_html/wp-content/fonts/almoni-tzar-aaa-100.svg#almoni-tzar-aaa-100’) format(‘svg’);
    }
    @font-face {
    font-family: ‘almoni-tzar-300’;
    src: url(‘danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.eot’);
    src: url(‘http:// ‘danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.eot?#iefix’) format(’embedded-opentype’),
    url(‘http:// ‘danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.woff’) format(‘woff’),
    url(‘http:// ‘danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.ttf’) format(‘truetype’),
    url(‘http:// ‘danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.svg#almoni-tzar-aaa-300’) format(‘svg’);
    }

    #site-logo,
    cite,
    input[type=”submit”],
    .x-colophon.bottom,
    .entry-content,
    a,
    .x-blockquote,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    .p-landmark-sub,
    .text-below,
    .post-title,
    .widgettitle {
    font-family: “almoni-tzar-100” !important;
    }

    table {
    margin-bottom: 0;
    }

    .x-navbar .sub-menu a {
    font-size: 20px;
    }

    .x-topbar .p-info,
    .x-topbar .p-info a,
    .x-topbar .x-social-global a {
    font-size: 20px !important;
    }

    .x-recent-posts-date {
    display: none !important;
    }

    .single .entry-featured {
    display: none;
    }

    .single .entry-title {
    display: none;
    }

    body .x-colophon.top {
    padding: 0px 0;
    }

    .x-colophon .x-nav li a {
    font-size: 15px;
    }

    .x-colophon.bottom .x-colophon-content {
    font-size: 14px;
    }

    .x-colophon.bottom {
    background-color: #ffffff;
    }

    .single-post .entry-wrap {
    padding: 0;
    }

    .site .x-container.offset {
    margin: 0;
    }

    .entry-content.content {
    margin: 0;
    }

    .blog .x-container.max {
    max-width: 1200px !important;
    }

    .blog .x-container.offset {
    margin: 40px auto !important;
    }

    @media (min-width: 980px) {
    .x-logobar {
    display: none !important;
    visibility: hidden !important;
    }
    .x-navbar .x-nav > li.logo-menu-item > a {
    text-indent: -99999px;
    text-align: left;
    width: 360px;
    height: 102px;
    background: url(http://www.danon.org.il/wp-content/uploads/2016/10/danon-logo-nb.jpg) no-repeat center center;
    background-size: contain;
    }
    }

    #1242017

    Rue Nel
    Moderator

    Hello There,

    The @font-face format is correct. Regretfully you have inserted a wrong font file location. Please update your code and use this instead:

    @font-face {
      font-family: 'almoni-tzar-100';
      src: url('danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-100.eot');
      src: url('http://danon.org.il/wp-content/fonts/almoni-tzar-aaa-100.eot?#iefix') format('embedded-opentype'),
        url('http://danon.org.il/wp-content/fonts/almoni-tzar-aaa-100.woff') format('woff'),
        url('http://danon.org.il/wp-content/fonts/almoni-tzar-aaa-100.ttf') format('truetype'),
        url('http://danon.org.il/wp-content/fonts/almoni-tzar-aaa-100.svg#almoni-tzar-aaa-100') format('svg');
    }
    
    @font-face {
      font-family: 'almoni-tzar-300';
      src: url('danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.eot');
      src: url('http://danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.eot?#iefix') format('embedded-opentype'),
        url('http://danon.org.il/wp-content/fonts/almoni-tzar-aaa-300.woff') format('woff'),
        url('http://danon.org.il/wp-content/fonts/almoni-tzar-aaa-300.ttf') format('truetype'),
        url('http://danon.org.il/wp-content/fonts/almoni-tzar-aaa-300.svg#almoni-tzar-aaa-300') format('svg');
    }

    Hope this helps. Please let us know how it goes.

    #1242885

    meir d
    Participant

    Thanks, it helped a lot, now only chrome doesn’t display the correct font. I tried clearing the cache but still no success.

    Thanks for all, Meir

    #1243228

    Rue Nel
    Moderator

    Hello There,

    You are experiencing CORS. Please update the css code again and use this:

    @font-face {
      font-family: 'almoni-tzar-100';
      src: url('http://www.danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-100.eot');
      src: url('http://www.danon.org.il/wp-content/fonts/almoni-tzar-aaa-100.eot?#iefix') format('embedded-opentype'),
        url('http://www.danon.org.il/wp-content/fonts/almoni-tzar-aaa-100.woff') format('woff'),
        url('http://www.danon.org.il/wp-content/fonts/almoni-tzar-aaa-100.ttf') format('truetype'),
        url('http://www.danon.org.il/wp-content/fonts/almoni-tzar-aaa-100.svg#almoni-tzar-aaa-100') format('svg');
    }
    
    @font-face {
      font-family: 'almoni-tzar-300';
      src: url('http://www.danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.eot');
      src: url('http://www.danon.org.il/public_html/wp-content/fonts/almoni-tzar-aaa-300.eot?#iefix') format('embedded-opentype'),
        url('http://www.danon.org.il/wp-content/fonts/almoni-tzar-aaa-300.woff') format('woff'),
        url('http://www.danon.org.il/wp-content/fonts/almoni-tzar-aaa-300.ttf') format('truetype'),
        url('http://www.danon.org.il/wp-content/fonts/almoni-tzar-aaa-300.svg#almoni-tzar-aaa-300') format('svg');
    }
    

    Hope this helps. Please let me know how it goes.

    #1244429

    meir d
    Participant

    thanks you saved me, This is P-e-r-f-e-c-t now 🙂 Thanks!!

    #1244766

    Friech
    Moderator

    We’re delighted to assist you with this.

    Cheers!