I have been dealing with this issue all day long, and I have no idea how to remedy it. I have searched for the issue on SO and have found my problem has occured to other people here. I have tried to the best of my ability to follow the steps that people have suggested to them but it still seems that I am getting the following error on my page:
Parse error: syntax error, unexpected $end in /hermes/waloraweb015/b1446/as.allthingsnetwork/blog/wp-content/themes/atn/functions.php on line 56
Through researching, I understand that error means that there are brackets that haven't been closed or missing ';' in the file. I have tried to fix those issues to no avail, so I'm here to post my code and possibly get a response from someone who is kind enough to help out.
functions.php:
<?php
// Enable support for post-thumbnails
add_theme_support('post-thumbnails');
if ( function_exists('add_theme_support') ) {
add_theme_support('post-thumbnails');
}
function wpbeginner_remove_comment_url($arg) {
$arg['url'] = '';
return $arg;
}
add_filter('comment_form_default_fields', 'wpbeginner_remove_comment_url');
function wpbeginner_comment_text_after($arg) {
$arg['comment_notes_before'] = "Let us know if you like this track</a>!";
return $arg;
}
add_filter('comment_form_defaults', 'wpbeginner_comment_text_after');
function custom_comments($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<div class="alignleft">
<?php echo get_avatar(get_the_author_ID()); ?>
</div>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<div class="comment-intro">
<h3><?php printf(__('%s'), get_comment_author_link()); ?></h3>
<a class="comment-permalink" href="<?php echo htmlspecialchars ( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s'), get_comment_date()); ?>
</a>
<em> | </em>
<a class="comment-permalink" href="<?php echo htmlspecialchars ( get_comment_link( $comment->comment_ID ) ) ?>">
<?php comment_time(); ?>
</a>
</div>
<?php if ($comment->comment_approved == '0') : ?>
<em><php _e('Your comment is awaiting moderation.') ?></em><br />
<?php endif; ?>
<div class="comment-text">
<?php comment_text(); ?>
</div><br />
<div class="reply">
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
</div>
}
?>
Thank you so much in advance to anyone that is willing to help me out, Anthony.