• Resolved katiediddesign

    (@katiediddesign)


    On this site I’m designing right now, it’s inserting the plugin code into the header…which makes the HTML fail to validate. When this plugin isn’ activate, the HTML validates. When the plugin IS activated, 11 errors are found. The first error is putting <div> in the head tags, and I’m not sure if the rest of the errors just happen because of that, ’cause the code in the other places validates when your plugin isn’t activated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • True, it puts a really faulty <div> in the header that makes w3c choke on the document as a whole.

    If you change line ~137 in facebook-likes-it.php from
    add_action('wp_head', 'fb_like_js_sdk');
    ..to:
    add_action('wp_footer', 'fb_like_js_sdk');

    It’ll put the code down at the bottom of your page, where it works fine for me. Hopefully it’ll be fixed in future versions.

    Plugin Author Piotr Sochalewski

    (@sproject)

    You can delete <div> tag too.

    Actually Facebook Likes it! is no more developed and supported, but you can check my new project based on it: http://wordpress.org/extend/plugins/facebook-likes-you/

    In Facebook Likes You! everything works like it should before. I didn’t forget about validation too. 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Facebook Likes it!] not HTML valid’ is closed to new replies.