Nov 20 2008

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.


Nov 18 2008

Elegant Grunge Wordpress theme – Fixed image caption box.

I noticed a problem with the caption boxes that Wordpress creates, and the image box model around the images in posts.

adding this to styles.css:

.wp-caption {
  padding-right:15px;
  padding-left:5px;
}

will change this:

before fix

before fix

to this:

after fix

after fix

Let me know if anyone runs into any problems.