Moderator
t-p
(@t-p)
I use IE9 with WP 3.1.2 and no such problem.
So, perhaps you want to start with validating your site (for both html and css).
I remove this from function.php, then it works.
$cufon_header_script = "\n<script src=\"".get_bloginfo('template_directory')."/js/cufon-yui.js\" type=\"text/javascript\"></script>\n<script src=\"".get_bloginfo('template_directory')."/js/vera.font.js\" type=\"text/javascript\"></script><script type=\"text/javascript\">/*<![CDATA[*/Cufon.replace(['h1','h2'], { fontFamily: 'Vera' });/*]]>*/</script>";
if($cufon_extra == 1) $cufon_header_script = str_replace("vera.font.js", "vera_extra.font.js", $cufon_header_script);
[Please post code snippets between backticks or use the code button.]
The problem is it use HTML5 canvas to draw the title, using Vera fonts, however this font only support English characters. My site is Chinese, so all the title are broken.
This problem not only happens in IE9. Any HTML 5 supported browsers have the problem, such as Chrome, Firefox.
Moderator
t-p
(@t-p)
Excellent. 🙂
Please mark thread as “resolved” using the dropdown in the right panel so that others with similar problem can see it as “resolved” and will read this thread for help if they have similar problem.
To fix this I had to comment out these three lines of code in functions.php:
$cufon_header_script = "\n<script src=\"".get_template_directory_uri()."/js/cufon-yui.js\" type=\"text/javascript\"></script>\n<script src=\"".get_template_directory_uri()."/js/vera.font.js\" type=\"text/javascript\"></script>\n<script type=\"text/javascript\">/*<![CDATA[*/Cufon.replace(['h1','h2','h3#reply-title'], { fontFamily: 'Vera' });/*]]>*/</script>";
if($cufon_extra == 1) $cufon_header_script = str_replace("vera.font.js", "vera_extra.font.js", $cufon_header_script);
if($cufon_enabled == 1) echo $cufon_header_script;
I don’t know how to comment out in .php. In ActionScript we use the double slashes ( // ) but they must be placed on each line. Block comments ( /* */ ) are allowed…but…I’m ignorant. Could someone post the code or even a functions.php file that I can swap out with FTP? Will this be resolved in a future upgrade of LightWord? Thanks!
lgeis,
I zipped a copy of the modified functions.php & uploaded it to my website here: http://www.andyviar.com/downloads/Lightword_IE9_fix.zip. Look at lines 510 through 516 to see the commented out code.
Hope this helps,
Andy
andyviar.com
Thank you, Andy! Incidentally, 1 Thess. 5:21 is a personal fave (wanna-be Apologist)!
Thanks Addyviar, I downloaded it to day and fixed the problem.