WordPress and Site Optimization Standard Palaver!

Hi,
Seems I've been saddled with Site Optimization lately. My director ran our new WP site on;
http://www.seowebpageanalyzer.com/
https://www.site-analyzer.com/
https://validator.w3.org/
And it shows the following issue;
22 errors found in my WordPress site when valided on w3c, how can I solve that?
On site-analyzers, too much H3 text and so and so
on seoweb analyser, though fixing that, it shows no meta tags on each pages and description.

How can I go about solving these issue on our WordPress site http://kaisteventures.com/kaiste1 particularly the w3c validation errors?

Regards

  • Barni

    Hey @Bojan Radonic, trust you are good. Thanks, here is the analyses from w3c;
    Info: The Content-Type was text/html. Using the HTML parser.

    Info: Using the schema for HTML with SVG 1.1, MathML 3.0, RDFa 1.1, and ITS 2.0 support.

    Error: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

    From line 389, column 2; to line 389, column 5

    h1>?

    • Fr

      Contexts in which element ul may be used:
      Where flow content is expected.
      Content model for element ul:
      Zero or more li and script-supporting elements.

      Error: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

      From line 402, column 2; to line 402, column 5

      h1>

    • ?
    • Al

      Contexts in which element ul may be used:
      Where flow content is expected.
      Content model for element ul:
      Zero or more li and script-supporting elements.

      Error: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

      From line 417, column 2; to line 417, column 5

      h1>

    • ?
    • Al

      Contexts in which element ul may be used:
      Where flow content is expected.
      Content model for element ul:
      Zero or more li and script-supporting elements.

      Error: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

      From line 432, column 2; to line 432, column 5

      h1>

    • ?
    • Al

      Contexts in which element ul may be used:
      Where flow content is expected.
      Content model for element ul:
      Zero or more li and script-supporting elements.

      Error: Bad value for attribute action on element form: Must be non-empty.

      From line 471, column 5; to line 471, column 57

      ght">? <form action="" id="king_newsletter" class="cmxform">? <

      Syntax of URL:
      Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.

      Warning: The language attribute on the script element is obsolete. You can safely omit it.

      From line 488, column 3; to line 488, column 55

      </div>? <script language="javascript" type="text/javascript">jQuery

      Error: End tag div seen, but there were open elements.

      From line 516, column 4; to line 516, column 9

      ? </div>? </a

      Error: Unclosed element ul.

      From line 509, column 5; to line 509, column 8

      get">?

        ?
  • Bojan Radonic

    Hey again @Barni,

    The children (direct descendants) of a ul element must all be li elements. So what you need to do is wrap the inner ul elements (the second ul that is inside another ul) with a li element.

    Here is an example:

    <ul class="something">
                <li>
                    <a href="">Link</a>
                </li>
                <li>
                     <ul class="inside">
                         <li><a href="">Lorem</a></li>
                         <li><a href="">Ipsum</a></li>
                     </ul>
                </li>
    </ul>

    Hope this helps :slight_smile:

    Cheers,
    Bojan

  • Barni

    Sure you are good @Bojan Radonic, thank you very much for this lead. You said;

    The children (direct descendants) of a ul element must all be li elements. So what you need to do is wrap the inner ul elements (the second ul that is inside another ul) with a li element.

    Hence, where will I put this to solve the error or may I seek you aid on this. The only html tag I added was in footer to append a class for the side contact form was in the footer

    <div id="floatingbox">
    Contact Us</div>
    </body>

    while the rest were css snippets but now about 10 errors were show and sincerely, I don't know where to fix these?

    With Regards

  • Bojan Radonic

    Hey again @Barni,

    Sorry If I wasn't clear enough, this is related to the lists in the HMTL in your theme most likely so the code you added above shouldn't be related to that.

    UL (unordered list) has to have LI (list item) as a direct child. You can also place another UL inside the UL (placing list inside the list).

    Error above is pointing that UL is being placed inside another UL without being wrapped in LI.

    These can be used in many places in your theme (example: your navigation) and since I'm not familiar with the theme that you're using I'd strongly suggest contacting theme authors with this since they should know exactly where this is being used so they can fix this in a theme update.

    Best regards,
    Bojan

  • Barni

    Hello @Bojan Radonic, trust you are good today. Here are the main errors encountering after deactivating the SmartCrawler

    1. Error: Attribute name not allowed on element meta at this point.
    From line 69, column 193; to line 69, column 297

    2. Error: Element meta is missing one or more of the following attributes: itemprop, property.
    ;</script><meta name="generator" content="Powered by Visual Composer - drag and drop page builder for WordPress."/>?<!--[

    3. Error: Stray end tag head.
    From line 70, column 445; to line 70, column 451
    /noscript></head> ?<bod

    4. Error: Start tag body seen but an element of the same type was already open.
    From line 71, column 1; to line 71, column 193
    ></head> ?<body class="home page page-id-3472 page-template page-template-templates page-template-full-width page-template-templatesfull-width-php bg-cover wpb-js-composer js-comp-ver-4.7 vc_responsive">? <div

    5. Fatal Error: Cannot recover after last error. Any further errors will be ignored.
    From line 71, column 1; to line 71, column 193
    ></head> ?<body class="home page page-id-3472 page-template page-template-templates page-template-full-width page-template-templatesfull-width-php bg-cover wpb-js-composer js-comp-ver-4.7 vc_responsive">? <div

    But after activating SmartCrawler SEO plugins, it shows these,

    6. Error: Element link is missing required attribute property.
    From line 68, column 2; to line 68, column 62
    " /> -->? <link rel='canonical' target='_blank' href='http://www.kaisteventures.com/'/>?<meta

    7. Error: Element meta is missing one or more of the following attributes: itemprop, property.
    From line 69, column 1; to line 69, column 72
    s.com/'/>?<meta name="google-site-verification" content="google99a1d2f2af770f56"/>?<scri

    How can I ever solve these bugs?

    Regards

  • Barni

    Hi @Bojan Radonic, please help, seems the errors you address previously about he children (direct descendants) of a ul element has spring up again if I'm right. Here it is;

    Error: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)
    From line 387, column 2; to line 387, column 5
    h1>?

    • Fr
      Contexts in which element ul may be used:
      Where flow content is expected.
      Content model for element ul:
      Zero or more li and script-supporting elements.

      Error: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)
      From line 400, column 2; to line 400, column 5
      h1>

    • ?
    • Al

      Contexts in which element ul may be used:
      Where flow content is expected.
      Content model for element ul:
      Zero or more li and script-supporting elements.

      Error: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)
      From line 415, column 2; to line 415, column 5
      h1>

    • ?
    • Al

      Contexts in which element ul may be used:
      Where flow content is expected.
      Content model for element ul:
      Zero or more li and script-supporting elements.

      Error: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)
      From line 430, column 2; to line 430, column 5
      h1>

    • ?
    • Al

      Contexts in which element ul may be used:
      Where flow content is expected.
      Content model for element ul:
      Zero or more li and script-supporting elements.

      Error: Bad value for attribute action on element form: Must be non-empty.
      From line 469, column 5; to line 469, column 57
      ght">? <form action="" id="king_newsletter" class="cmxform">? <
      Syntax of URL:
      Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.

      Warning: The language attribute on the script element is obsolete. You can safely omit it.
      From line 486, column 3; to line 486, column 55
      </div>? <script language="javascript" type="text/javascript">jQuery

      Error: End tag div seen, but there were open elements.
      From line 515, column 4; to line 515, column 9
      ? </div>? </a

      Error: Unclosed element ul.
      From line 507, column 5; to line 507, column 8
      get">?

        ?

    Not sure if the theme author if the support was the author of the theme...really.

    With Regards

    Need this help like yesterday,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.