WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Weird Display Isues (17 posts)

  1. SGHB
    Member
    Posted 11 months ago #

    Hey Guys,

    I'm having a few issues which I can' quite get my head around.

    There's a portion of text and code showing at the top of certain pages

    http://thestarwarsarchive.com/ian-mcdiarmid-to-return/

    http://thestarwarsarchive.com/let-the-speculation-begin/

    http://thestarwarsarchive.com/join-the-pork-side/

    I WAS thinking it was specific post types but then I checked another one and that hasn't got the text and code

    http://thestarwarsarchive.com/words-with-warwick-mark-hamill/

    I've scoured all of the themes files and css and even plugin files to try and find the culprit but to no avail.

    I'm at a total loss.

    Help. if you can.

  2. xmatter
    Member
    Posted 11 months ago #

    where is this coming from?

    <body class="single single-post postid-43886 single-format-aside custom-background two-column right-sidebar" data-twttr-rendered="true">

    The Twitter Render part?

  3. SGHB
    Member
    Posted 11 months ago #

    I have no idea

  4. xmatter
    Member
    Posted 11 months ago #

    Well it seems to text in question is coming from something related to Twitter

  5. SGHB
    Member
    Posted 11 months ago #

    I removed the Twitter widget to no improvement

  6. xmatter
    Member
    Posted 11 months ago #

    On the admin side, view the post through the TEXT editor, and see if anything remains there

  7. SGHB
    Member
    Posted 11 months ago #

    Whoa

    It looks like its related to Post Excerpts, deleted the Post Excerpt, saved and now the problem is gone

  8. SGHB
    Member
    Posted 11 months ago #

    Why would post excerpts cause that problem? And only on random posts?

    Weird.

  9. xmatter
    Member
    Posted 11 months ago #

    Lol. I have no idea, but glad you got it resolved. I will look further into this though

  10. SGHB
    Member
    Posted 11 months ago #

    Turns out the culprit was Enabling Ultimate Tiny Mce in Excerpts.

    Phew!

    Thanks for your help.

    :)

  11. xmatter
    Member
    Posted 11 months ago #

    Well done! Thanks for teaching me something to look out for.

  12. CrouchingBruin
    Member
    Posted 11 months ago #

    Has it been fixed? I still see the extra text at the top of the aforementioned pages. It looks like it has to do with having links in your post excerpts.

  13. SGHB
    Member
    Posted 11 months ago #

    Fixed now...looks like it IS links in the excerpts that is the culprit, not UTM

    Thanks

    :)

  14. SGHB
    Member
    Posted 11 months ago #

    So, the lesson here is, keep it basic in excerpts.

    :)

  15. SGHB
    Member
    Posted 11 months ago #

    Excerpts also don't like underlined text either (possibly a clash between my theme or something)

  16. CrouchingBruin
    Member
    Posted 11 months ago #

    It looks like your theme uses the excerpt to create the description meta tag in the header, leaving the HTML tags intact. If you do a view source, you'll see something like this towards the top of your header:

    <meta name="description" content="Well, according to my pals ...

    What happens is when an HTML tag is included in the excerpt, the ending right bracket (>) is incorrectly interpreted as the end of the meta tag. So if you use the <u> tag for underlining, it will look like this:

    <meta name="description" content="Well, <u>according</u> to my pals ...

    The bracket to the right of the <u> gets interpreted as the end of the meta tag, and the rest gets interpreted as HTML that shows up as a "random string." So you can't include any HTML in your excerpts.

    I think WordPress by default strips out HTML tags in excerpts, more for the situation where an ending DIV tag might get left off accidentally and screw up the rest of the page. Some themes, and plugins as well, have been written to restore the inclusion of HTML in an excerpt, but as your example indicates, care must be taken to avoid undesired effects.

  17. SGHB
    Member
    Posted 11 months ago #

    I've removed all U code and Links and all seems fine now...it doesn't seem to mind strong or em codes.

    :)

Reply

You must log in to post.

About this Topic