| Author |
Message |
kenoodo Lifeless Person
Joined: 17 Jul 2005 Posts: 1092 Location: MengDai
|
Posted: Sun Jan 20, 2008 4:26 am Post subject: How to embed WEFT to WrodPress or Limbo? |
|
|
About a month ago my CMS crashed, and I am working on a new one now. Since I need to use some fonts that no OS could support them now, the only way is to use WEFT.
Last time, there were .html files to add the CSS code like this
| Code: |
<STYLE TYPE="text/css">
<!--
@font-face {
font-family: dehongdai;
font-style: normal;
font-weight: normal;
src: url(http://..../DEHONGD0.eot);
}
@font-face {
font-family: xidai;
font-style: normal;
font-weight: normal;
src: url(http://..../XIDAI0.eot);
}
-->
</STYLE> |
But now I can not find any .html to add this cold in WordPress or Limbo, yeah, that's a big problem.
I even get .html.php files, but they are not like the .html I knew before, so, I have completely no idea what to do.
Any one works with WEFT? I need your help. |
|
| Back to top |
|
| |
Rashy Lifeless Person
Joined: 25 Sep 2006 Posts: 680
|
Posted: Sun Jan 20, 2008 12:18 pm Post subject: |
|
|
I don't know about Limbo, but I think the best idea for Wordpress would be to place your code into your template header file. <<yourdomain.com>>/wp-content/themes/<<your-theme>>/header.php and just make sure you put it outside the <?php and ?> tags. I think the .html.php are valid .php files too, but in the themes I have made for wordpress the .html.php files aren't called for every page so I wouldn't put your code there.
Alternatively if it is only css then you could put it in your theme's main css file, located in the same directory as your header.php file. _________________ Rashy! |
|
| Back to top |
|
| |
kenoodo Lifeless Person
Joined: 17 Jul 2005 Posts: 1092 Location: MengDai
|
Posted: Thu Jan 24, 2008 5:01 am Post subject: |
|
|
Thanks Rashy, it works.
To make the posting WYSIWYG, I install tinymce-advanced plug-in and add these fonts into the \wp_includes\tinymce\thems\advanced\editor_temples.js.
It is looked nice now, just a litter more testing and I will make the WordPress my main posting board and make it more like a CMS. |
|
| Back to top |
|
| |
|
|
|