• Hello,

    You have a hook in wp-advanced-pdf.php line 67 which uses “wp_head” to inject a <div> ( among other things ) into the site <head> tags.

    It produces an incorrect HTML page.

    The following elements can go inside the <head> element:

    <title> (this element is required in an HTML document)
    <style>
    <base>
    <link>
    <meta>
    <script>
    <noscript>

    (https://www.w3schools.com/tags/tag_head.asp)

    Changing the hook to “wp_footer” should fix the issue.

    Thanks for the plugin.

    • This topic was modified 7 years, 3 months ago by arnaudfmagina.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cedcommerce

    (@cedcommerce)

    Hello,

    Thanks for reaching WP Advanced PDF

    Ok, we will check this point and and will take action on this if suitable in our next release.

    Thanks And Regards
    CedCommerce

    Kate

    (@kwalshucnjgmailcom)

    Issue is still present, causes page to fail validation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML `div` injected in `head`’ is closed to new replies.