Title: [Plugin: TweetMeme Button] Does not validate
Last modified: August 19, 2016

---

# [Plugin: TweetMeme Button] Does not validate

 *  [rmlumley](https://wordpress.org/support/users/rmlumley/)
 * (@rmlumley)
 * [17 years ago](https://wordpress.org/support/topic/plugin-tweetmeme-button-does-not-validate/)
 * I love the Tweetmeme plug-in, but it currently prevents my site from validating
   at XHTML Transitional. I receive 20 errors, but if I remove the tweetmeme div,
   it validates.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [mrgtb](https://wordpress.org/support/users/mrgtb/)
 * (@mrgtb)
 * [17 years ago](https://wordpress.org/support/topic/plugin-tweetmeme-button-does-not-validate/#post-1082831)
 * Removed – read below!
 *  [mrgtb](https://wordpress.org/support/users/mrgtb/)
 * (@mrgtb)
 * [17 years ago](https://wordpress.org/support/topic/plugin-tweetmeme-button-does-not-validate/#post-1082832)
 * Ah, I know what the problem is. The plugin is calling a “div id” multiple times
   on one page, you can only call an ID one time only on the same page, or it will
   fail validation. So if you have 20 articles advertised on one page displaying
   the tweet button, your repeating that same ID 20 times. Which will give you 20
   errors.
 * Were as you can call a “div class” multiple times and it will still pass XHTML
   validation (Even Strict).
 * That’s the problem. They should have used a “class” instead of an “ID” like this:
 * <div class=”tweetmeme_button”
 * And in their stylesheet used:
 * .tweetmeme_button {
    border: bla; }
 * instead of this below for styling
 * #tweetmeme_button {
    border: bla; }
 * And if they are using an ID because it makes use of classes under it. They still
   could have done it like this.
 * .tweetmeme_button {
    border: bla; }
 * .tweetmeme_button .classone {
    border: bla; }
 * .tweetmeme_button .classtwo {
    border: bla; }
 * So they avoid using an “ID” for style
 *  [mrgtb](https://wordpress.org/support/users/mrgtb/)
 * (@mrgtb)
 * [17 years ago](https://wordpress.org/support/topic/plugin-tweetmeme-button-does-not-validate/#post-1082833)
 * Sorry, please ignore what I said above. There does indeed appear to be all sorts
   of problems not releated the the ID style side of things.
 *  [davieslim](https://wordpress.org/support/users/davieslim/)
 * (@davieslim)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-tweetmeme-button-does-not-validate/#post-1082882)
 * I recently found out that Tweetmeme button preventing me from validating XHTML.
 * I tinkered around with the php file (i know, i shouldnt) but I hope this will
   help some people.
 * This small guide will help make the current Tweetmeme button XHTML valid.
 * [Making Tweetmeme Button XHTML Valid](http://www.davieslim.com/wordpress/making-the-tweetmeme-button-xhtml-friendly/)
 *  [talktweetmeme](https://wordpress.org/support/users/talktweetmeme/)
 * (@talktweetmeme)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-tweetmeme-button-does-not-validate/#post-1082889)
 * It does now! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: TweetMeme Button] Does not validate’ is closed to new replies.

## Tags

 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 5 replies
 * 4 participants
 * Last reply from: [talktweetmeme](https://wordpress.org/support/users/talktweetmeme/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-tweetmeme-button-does-not-validate/#post-1082889)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
