WordPress.org

Ready to get started?Download WordPress

Forums

Valid Facebook "like" (2 posts)

  1. fk59
    Member
    Posted 3 years ago #

    Iam looking for w3c valid facebook "like-button" in posts and pages.

    All i can find here at the plugin section is not valid code and produced many errors.

    Any ideas?

    Thx, Frank

  2. hpguru
    Member
    Posted 3 years ago #

    Please try this:

    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:30px"></iframe>

    I modofied code to my site, code is XHTML valid.

Topic Closed

This topic has been closed to new replies.

About this Topic