WP Wall plugin + Elegant Grunge theme – fixed W3C xHTML validation error

I recently installed a plugin called WP Wall (you should now notice it in the sidebar.)  I’m pretty happy with how it worked out, but I noticed there was a problem validating my markup after installing this plugin.

The problem was simple, an input tag had and ID and name of “page”.  This ID was already in use by my Wordpress theme (Elegant Grunge), and as we all know no two tags can have the same ID.  Generally speaking, page is a pretty common identifier and I’m not surprised that it was already in use.

To fix:

Open wp-wall.php, and go to line 243

Change:

243
$result.='<input type="hidden" name="page" id="page"value="'.$page.'" />';

To:

243
$result.='<input type="hidden" name="wallpage" id="wallpage" value="'.$page.'" />';

Open wp-wall.js.php, and go to line 117

Change:

117
var page= $('#wallcomments #page');

To:

117
var page= $('#wallcomments #wallpage');

I changed the identifier from page to wallpage, but you can use anything you like as long as something else isn’t already using that specific identifier.  Hopefully this won’t cause any conflicts within the WP Wall plugin, only time will tell.

No TweetBacks yet. (Be the first to Tweet this post)

Leave a Reply