1. Make a backup copy of your comments.php file
2. Go to this link, http://pastebin.com/fMHWEL65, and use the code in the “RAW Paste Data” section to replace all the code in the comments.php file.
PERFECT! Thank you, thank you, THANK YOU! 🙂
Appriciate your assistance and your great product!
Hello there,
I recently updated my WP and Spam Free WordPress and now I’m getting the below error. Please let me know if you are able to assist with this issue, and as always what the fee might be to do so. 🙂
Error:
Parse error: syntax error, unexpected T_ENDIF in /home/content/13/8557213/html/charismascorner/wp-content/themes/a-little-touch-of-purple/comments.php on line 68
[ Moderator note: please wrap code in backticks or use the code button. ]
Nevermind I think I figured it out. The error line was from the last row in the php file. I removed it and it appeared to have fixed the issue. 🙂
WAS:
<?php if ($altop_xhtml_tags == "true") { ?>
<p class="comment-tags"> <small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s', 'altop'), allowed_tags()); ?> </small> </p>
<?php } ?>
<div>
<textarea class="commenttext" name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea>
<div id="cancel-comment-reply"> <?php cancel_comment_reply_link() ?> </div>
</div>
<p>
<input class="commentsubmit" name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e(__('Submit', 'altop')); ?>" />
<?php comment_id_fields(); ?>
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; ?>
</div>
<?php endif; ?>
NOW:
<?php if ($altop_xhtml_tags == "true") { ?>
<p class="comment-tags"> <small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s', 'altop'), allowed_tags()); ?> </small> </p>
<?php } ?>
<div>
<textarea class="commenttext" name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea>
<div id="cancel-comment-reply"> <?php cancel_comment_reply_link() ?> </div>
</div>
<p>
<input class="commentsubmit" name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e(__('Submit', 'altop')); ?>" />
<?php comment_id_fields(); ?>
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; ?>
</div>