Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(SOLVED) Working on my site's theme - Font changes on other pages
#1
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!
http://Blog.TDT-Alpha.com/
(Website will be replaced soon, with an image database made with GS)
Reply
#2
... 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 ????
Reply
#3
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..)
http://Blog.TDT-Alpha.com/
(Website will be replaced soon, with an image database made with GS)
Reply
#4
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
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
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! Smile
Thanks men!
http://Blog.TDT-Alpha.com/
(Website will be replaced soon, with an image database made with GS)
Reply
#6
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.
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#7
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!!!!)
http://Blog.TDT-Alpha.com/
(Website will be replaced soon, with an image database made with GS)
Reply




Users browsing this thread: 1 Guest(s)