Forums

[resolved] Lightword Post Titles not appearing in IE9 (8 posts)

  1. tubecrush
    Member
    Posted 9 months ago #

    Hi all,

    One of the visitors to my site has complained that the titles of the posts don't appear in IE9 using the Lightword theme. As I use a Mac, I wasn't having this problem myself, but have now checked it in IE9 and it is definitely an issue.

    Does anyone know what causes the problem and/or how it can be fixed?

    Thanks!

  2. t-p
    Member
    Posted 9 months ago #

    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).

  3. Leonardo Wong
    Member
    Posted 9 months ago #

    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.

  4. t-p
    Member
    Posted 9 months ago #

    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.

  5. andyviar
    Member
    Posted 9 months ago #

    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;
  6. lgeis
    Member
    Posted 8 months ago #

    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!

  7. andyviar
    Member
    Posted 8 months ago #

    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

  8. lgeis
    Member
    Posted 8 months ago #

    Thank you, Andy! Incidentally, 1 Thess. 5:21 is a personal fave (wanna-be Apologist)!

Reply

You must log in to post.

About this Topic