• jami1955

    (@jami1955)


    SITE: https://jamiestclair.com
    I have read the other posts on “weird characters” appearing on the page. Outside of deleting and reloading the entire database, there was nothing that seemed conclusive. AND, these characters ONLY appear on the front page (homepage.php in theme). No other pages display these characters:

    ??

    The theme is creative-by-nature, but again I don’t think it is theme based.
    Actions taken already:
    ? I had the home page load a header from another page that is free of the characters, and it still displayed them, so it doesn’t seem to be the header code.
    ? I did the same w. the footer, so it’s not the footer.
    ? I validated the document according to HTML strict demands, and there was only one problem which is the placement of an iframe from youtube, which is not allowed. Again, however, the same iframe is located on another page and does not cause the problem.

    The document declaration at the top of the html is

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" lang="en-US">
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    Any ideas would be much appreciated.
    thanks…

Viewing 7 replies - 1 through 7 (of 7 total)
  • prasun1519

    (@prasun1519)

    Did you check the page template? It seems that this is the problem of page template script. It seems to me head content moved within body.

    Krishna

    (@1nexus)

    Temporarily revert to Twenty Thirteen theme and see if you still have Weird characters displayed.

    Thread Starter jami1955

    (@jami1955)

    Brilliant. I changed the theme to 2013 and NO characters – gone. So.
    I’m still doubtful about where to start?

    Should I start throwing template pages out, and redo them? Since the problem is only on the homepage.php with attached header, footer, should I only concentrate there?

    Or is there a global function relevant somewhere that is applied to only these files (homepage.php, etc)?

    Could it be in the functions.php in the theme? I don’t think I changed anything there. And, the fact that it’s only on one page is mystifying.

    thanks again!

    prasun1519

    (@prasun1519)

    Do you have different template for homepage? You might check the header definition there.

    Thread Starter jami1955

    (@jami1955)

    Homepage has a template that has been modified by me extensively. The head definition is looking ok:

    <?php
    /*
    Template Name: Homepage
    */
    ?>
    <?php get_header(home); ?>

    that’s what is at the top of the homepage template.

    One thing that is worth noting is those characters appear BEFORE the document declaration, and HTML. They are the very first thing, see below – this is the source code for the page in Chrome:

    ??
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    Krishna

    (@1nexus)

    Just for the weird characters appearing before the doc declaration, your site cannot be validated too. See this.

    Also, it seems that you have edited WordPress core files too, right?

    Thread Starter jami1955

    (@jami1955)

    I edited one core file: funtions.php – and to check it I undid all my edits. It didn’t seem to matter. I can totally replace the file to check it – do you think it’s likely that’s doing it?

    To check the validation, I checked it within Dreamweaver, they have a validation check on the code before it’s uploaded to the server.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘weird characters top of page’ is closed to new replies.