WordPress.org

Ready to get started?Download WordPress

Forums

Like
Small W3C synax amendment needed (1 post)

  1. callumw
    Member
    Posted 3 years ago #

    Hi
    I ran my site through W3C validation and had only a couple of errors (woohoo)

    One of them comes from the Like plugin and is a simple syntax error which I tried to manually fix myself, but I couldn't find the actual code for it?

    The syntax W3C flags is because of a capital letter mid attribute in: "allowTransparency"
    Should be "allowtransparency"

    I looked in the page code and found the relating code in the like_widget.php on line 409, but I can't see where it's picking up the allowTransparency:

    Page src:

    <!-- Facebook Like Button v1.9.6 BEGIN [http://blog.bottomlessinc.com] -->
    <iframe src="http://MyURL&layout=button_count&show_faces=false&width=450&action=recommend&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 30px; align: left; margin: 2px 0px 2px 0px"></iframe>
    <!-- Facebook Like Button END -->

    Line 409 of the code:
    $button .= '<iframe src="http://www.facebook.com/plugins/like.php?href='.$url.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$tt_like_settings['width'].'px; height: '.$tt_like_settings['height'].'px; align: '.$align.'; margin: '.$margin.'"></iframe>';

    Would be worth amending for future releases to keep the gods of HTML happy ;)

    CW

    http://wordpress.org/extend/plugins/like/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic