WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem with Firefox vs. IE (9 posts)

  1. llworldtour
    Member
    Posted 5 years ago #

    Hi there-
    Just a week or so ago i downloaded 2.6.2 and now am having problems.
    My Feed emails to some people are fine, but to others are showing up with just the title and this code:

    PLUS my webpage on IE is now not working at all. All that shows is the header and the title, NO SIDEBAR and then:
    <!--[endif]-->
    <!--[endif]-->
    <!--[endif]-->

    My site is: http://www.llworldtour.com.
    I'm not very advanced...so any help is appreciated!
    Lisa

  2. Josh Leuze
    Member
    Posted 5 years ago #

    Are you pasting content into your posts from Word or another text editor? If so, you should use the "Paste as Plain Text" or "Paste from Word" options.

    If you view the source code of your homepage using Firefox, and do a Find for "<!--[endif]-->", you will see chunks of green code in some of your posts. This is what is causing your problems.

    You need to edit each post that contains this chunk of code, such as "The Great Toaster Smash-Up 2008". Go to the HTML Editor, not the Visual Editor, and delete any of those green chunks that are contained in comment tags.

    Here is one example:

    <!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><span class="mceItemObject" classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></span>
    <mce:style><! st1\:*{behavior:url(#ieooui) } --></p>
    <p><!--[endif]--> <!--[if gte mso 10]>
    <mce:style><! /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} -->

    And here is another:

    <!--[endif]-->

  3. llworldtour
    Member
    Posted 5 years ago #

    Jleuze-
    Thank you SO much for responding to my post. I see what you are talking about, but just want to make sure i understand completely understand what you are saying.

    I should ONLY delete the <!--[endif]--> phrases i find and nothing else?

    I think i had been using the 'paste as word' feature but didn't notice a difference so perhaps these last 2 posts i didn't use it.

    Why is it fine in Firefox but not in IE?

    Thanks!
    Lisa

  4. llworldtour
    Member
    Posted 5 years ago #

    I just deleted the <!--[endif]--> tags but my website on IE is still blank except for the header. I don't know why...
    Any help is appreciated!
    Lisa

  5. Josh Leuze
    Member
    Posted 5 years ago #

    No problem llworldtour.

    Delete the whole comment tags, everything inside these:

    <!-- This is a comment -->

    So you will need to delete the smaller "<!--[endif]-->" bits, and the bigger chucks like the example I posted earlier. It is some code that Word uses that isn't supported by WordPress.

    "Paste from Word" should work, but if you "Paste as Plain Text" and add back in the styling in WordPress, you might get better results.

    I think that the reason it works in Firefox, is that it is smart enough not to try and render the code(it is inside a comment and is not supposed to show up on the page, only the source code). But IE is ignoring that it is a comment, and is trying to render the code anyways, which it cannot do!

  6. llworldtour
    Member
    Posted 5 years ago #

    Phew! Thank you so much--it's fixed!! I really appreciate your help! It made my whole sidebar go away...but it's all back now.
    So--is it best to use paste from word or paste as text?

  7. Josh Leuze
    Member
    Posted 5 years ago #

    I think it is best to paste as plain text and style it using WordPress' visual editor, then you know it is going to be code that will work with WordPress.

    But if you have a lot of Word documents to put online, or they have a lot of styling in them that you don't want to redo, that might be impractical. I think that the past from Word should work fine, but I would click over to the HTML view after pasting it in, just to make sure that it looks okay.

  8. cleoni
    Member
    Posted 5 years ago #

    Hello,
    I have made available a free online service to clean your HTML from nasty tags such as SPAN, EM and [if / endif].

    Just grab your HTML content by using the [HTML] button on the visual editor, then paste it here:

    http://software.cristianoleoni.com/freebies/spantagremover.php

    follow on-screen instructions and paste cleaned code in place of the old one.

    Voilà!

  9. realloveministry
    Member
    Posted 5 years ago #

    Genius... thanks all

Topic Closed

This topic has been closed to new replies.

About this Topic