WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Comment-form are gone – All settings are OK

[Resolved] Comment-form are gone – All settings are OK

  • Hi,

    I just made a new childtheme for my blog today. I also added one of the Facebook Comment-plugin, and it worked completely fine. After a few bug-fixes, my theme looked great, exept that the comment form was gone. I tried to restore the old WP-comment, didn’t work. I restored the theme back to original, but nothing happened. I also tried other themes, but no different. I looked at my Settings for Discussion, but it looked OK.

    It would be great with a little help. If this is a tricky thing (wich it seems, since I have used all day with no result) I’ll gladly make a quest-account on my site, therefore I can get direct help there. If anyone wants to help me out, that would be great!

    So, here’s my settings and the original comments.php –

    http://i168.photobucket.com/albums/u161/drugsneverwork/settings.jpg

    <?php
    
    // Exit if accessed directly
    if ( !defined('ABSPATH')) exit;
    
    /**
     * Comments Template
     *
     *
     * @file           comments.php
     * @package        Responsive
     * @author         Emil Uzelac
     * @copyright      2010 - 2012 ThemeID
     * @license        license.txt
     * @version        Release: 1.0
     * @filesource     wp-content/themes/responsive/comments.php
     * @link           http://codex.wordpress.org/Theme_Development#Comments_.28comments.php.29
     * @since          available since Release 1.0
     */
    ?>
    <?php if (post_password_required()) { ?>
        <p class="nocomments"><?php _e('This post is password protected. Enter the password to view any comments.', 'responsive'); ?></p>
    
    	<?php return; } ?>
    
    <?php if (have_comments()) : ?>
        <h6 id="comments">
    			<?php
    				printf( _n('One comment on “%2$s”', '%1$s comments on “%2$s”', get_comments_number(), 'responsive'),
    					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>');
    			?>
        </h6>
    
        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
        <div class="navigation">
            <div class="previous"><?php previous_comments_link(__( '‹ Older comments','responsive' )); ?></div><!-- end of .previous -->
            <div class="next"><?php next_comments_link(__( 'Newer comments ›','responsive', 0 )); ?></div><!-- end of .next -->
        </div><!-- end of.navigation -->
        <?php endif; ?>
    
        <ol class="commentlist">
            <?php wp_list_comments('avatar_size=60&type=comment'); ?>
        </ol>
    
        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
        <div class="navigation">
            <div class="previous"><?php previous_comments_link(__( '‹ Older comments','responsive' )); ?></div><!-- end of .previous -->
            <div class="next"><?php next_comments_link(__( 'Newer comments ›','responsive', 0 )); ?></div><!-- end of .next -->
        </div><!-- end of.navigation -->
        <?php endif; ?>
    
    <?php else : ?>
    
    <?php endif; ?>
    
    <?php
    if (!empty($comments_by_type['pings'])) : // let's seperate pings/trackbacks from comments
        $count = count($comments_by_type['pings']);
        ($count !== 1) ? $txt = __('Pings/Trackbacks','responsive') : $txt = __('Pings/Trackbacks','responsive');
    ?>
    
        <h6 id="pings"><?php echo $count . " " . $txt; ?> <?php _e('for','responsive'); ?> "<?php the_title(); ?>"</h6>
    
        <ol class="commentlist">
            <?php wp_list_comments('type=pings&max_depth=<em>'); ?>
        </ol>
    
    <?php endif; ?>
    
    <?php if (comments_open()) : ?>
    
        <?php
        $fields = array(
            'author' => '<p class="comment-form-author">' . '<label for="author">' . __('Name','responsive') . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
            '<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30" /></p>',
            'email' => '<p class="comment-form-email"><label for="email">' . __('E-mail','responsive') . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
            '<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30" /></p>',
            'url' => '<p class="comment-form-url"><label for="url">' . __('Website','responsive') . '</label>' .
            '<input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></p>',
        );
    
        $defaults = array('fields' => apply_filters('comment_form_default_fields', $fields));
    
        comment_form($defaults);
        ?>
    
        <?php endif; ?>

    The theme I have is Responsive by ThemeID – this is my website: http://angel-eye.net

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Comment-form are gone – All settings are OK’ is closed to new replies.
Skip to toolbar