WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
[resolved] wp postratings and w3 validator Errors (5 posts)

  1. saeed shabani
    Member
    Posted 8 months ago #

    I use wp postratings plugin and when i check my site with w3 validator it get 2 errors for this plugin scripts.
    how can i make it true?

    it's the errors :

    Error HTML5 Validator Error
            Line 289, column 45: Stray start tag script.
    
            </body></html><script type='text/javascript'>
    
            Line 289, column 45: Cannot recover after last error. Any further errors will be ignored.
    
            </body></html><script type='text/javascript'>

    and it's the source code :

    </body></html><script type='text/javascript'>
    /* <![CDATA[ */
    var ratingsL10n = {"plugin_url":"http:\/\/rokesh.ir\/wp-content\/plugins\/wp-postratings","ajax_url":"http:\/\/rokesh.ir\/wp-admin\/admin-ajax.php","text_wait":"Please rate only 1 post at a time.","image":"stars_crystal","image_ext":"gif","max":"5","show_loading":"0","show_fading":"1","custom":"0"};
    var ratings_mouseover_image=new Image();ratings_mouseover_image.src=ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_over."+ratingsL10n.image_ext;;
    /* ]]> */
    </script>
    <script type='text/javascript' src='http://rokesh.ir/wp-content/plugins/wp-postratings/postratings-js.js'></script>

    http://wordpress.org/plugins/wp-postratings/

  2. Lester Chan
    Member
    Plugin Author

    Posted 8 months ago #

    If you deactivate the plugin does it pass the validation?

  3. saeed shabani
    Member
    Posted 8 months ago #

    yes when i deactivate it my site pass the validation

  4. Lester Chan
    Member
    Plugin Author

    Posted 8 months ago #

    Try putting your <?php wp_footer(); ?> in your theme footer before </body>

  5. saeed shabani
    Member
    Posted 8 months ago #

    Thanks a lot

Reply

You must log in to post.

About this Plugin

About this Topic