Posts: 39
Threads: 8
Joined: Jul 2011
2012-07-25, 20:40:46
(This post was last modified: 2012-07-26, 18:16:18 by u63aeo4.)
Hi!
I finally started to build my website, starting with the theme...
now, I used @font-face thing to make my own fonts on the website but there seems to be a bug...
http://www.tdt-alpha.com
On the homepage (about us) all the fonts are set up right,
but when you go to 'news', it changes back to default fonts...
What should I do?
EDIT: SOLVED
I used relative paths for the fonts ("./path")
While I needed to use absolute paths ("/path")
That fixed the problem!
Thanks people!
Posts: 79
Threads: 2
Joined: Feb 2012
... the only thing i see is an inappropriate use of the style tag inside the body tag on your news page. Move it inside the head tag, or place the content of the style tag correctly inside the division tag. Hope this helps ????
Posts: 39
Threads: 8
Joined: Jul 2011
The style I found (too) in the body tag is not related to fonts or any text, it's from the news blog plugin for the thumbnails..
The funny thing is that the css and the html (PHP...) are exactly the same between About Us and News but still - the font changes on News...
Thanks for the answer, but didn't help (or I didn't notice something..)
Any suggestions? (I cannot continue building when the font is not uniform..)
Posts: 2,928
Threads: 195
Joined: Feb 2011
you are funny!
You should use absolute paths for the path.
the news-site URL is
http://www.tdt-alpha.com/news/
so the relative path to the fontface must go wrong for sure
Posts: 39
Threads: 8
Joined: Jul 2011
2012-07-26, 18:14:10
(This post was last modified: 2012-07-26, 18:15:11 by u63aeo4.)
oh... whoops? XD
so instead of "./path" I need to put "/path" ? (checked it at the moment...)
These are exactly the parts which I fail in...
(changing it now for testing..)
EDIT: IT WORKED!
I put /path instead of ./path for absolute paths!
Thanks men!
Posts: 2,928
Threads: 195
Joined: Feb 2011
I am glad it works now for you but please follow my suggestion:
really use complete absolute path (URL + directory)
I am sure you will have more than 2 levels of pages on your site and it will fail again from the 3rd level ... etc.
Posts: 39
Threads: 8
Joined: Jul 2011
thanks again!
firstly - I wont...
secondly - I used /path isn't that 100% absolute? I believe (but don't really know) that it it will refer the path to the domain itself ("/path/123/" to "tdt-alpha.com/path/123/") from every page..
thirdly - thanks!
(I love English!!!!)