The Personal Site of Dan Masters

Formating Fix for the Subscribe to Comments Plug-in

I found a temporary fix for the formatting for the Subscribe to Comments WordPress Plug-in.

I was forced into fixing it because I was trying to implement the plug-in on another web site and the formatting was broken there too.

You need to open the subscribe-to-comments.php file and go to line 36.

It will look like this –

<p style="clear: both;" class="subscribe-to-comments">
<input type="checkbox" name="subscribe" id="subscribe" value="subscribe" style="width: auto;"
<?php if ($sg_subscribe->default_subscribed) echo 'checked="checked" '; ?>/>
<label for="subscribe"><?php echo $sg_subscribe->not_subscribed_text; ?></label>
</p>

What you need to do is change it to the styles for the check box and the check box label to adjust where they go.

This is what I did to get mine lined up correctly –

<p style="clear: both;" class="subscribe-to-comments">
<input type="checkbox" name="subscribe" id="subscribe" value="subscribe" style="width: auto; float: left; margin-left: 125px; margin-top: 5px;" <?php if ($sg_subscribe->default_subscribed) echo 'checked="checked" '; ?>/>
<label style="width:325px; margin-left: 10px;" for="subscribe"><?php echo $sg_subscribe->not_subscribed_text; ?></label>
<br />
<br />
</p>

It may not be the best looking code around but it put it where I wanted it to be.

Also, this works for Firefox just fine but IE is another story. Most of my visitors here use Firefox anyway so I doubt it will matter. I will try to accommodate IE later when I get the time.

Technorati : , , , , , ,