Tagged: x
-
AuthorPosts
-
November 1, 2016 at 4:05 am #1238886
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
November 1, 2016 at 4:21 am #1238906You’re welcome! 🙂
November 2, 2016 at 11:39 pm #1241893thanks,
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;
}
}November 3, 2016 at 2:26 am #1242017Hello 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.
November 3, 2016 at 3:47 pm #1242885Thanks, 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
November 3, 2016 at 8:52 pm #1243228Hello 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.
November 4, 2016 at 5:48 pm #1244429thanks you saved me, This is P-e-r-f-e-c-t now 🙂 Thanks!!
November 5, 2016 at 2:01 am #1244766We’re delighted to assist you with this.
Cheers!
-
AuthorPosts