WordPress.org

Ready to get started?Download WordPress

Forums

My background is gone... (4 posts)

  1. BertMan
    Member
    Posted 1 year ago #

    So I changed the comments.php file so I could get rid of some form fields. This is my file right now:

    <?php if ( have_comments() ) : ?>
    			<h3 id="comments-title"><?php
    			printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyeleven' ),
    			number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
    			?></h3>
    
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyeleven' ) ); ?></div>
    				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div>
    			</div> <!-- .navigation -->
    <?php endif; // check for comment navigation ?>
    
    			<ol class="commentlist">
    				<?php
    					/* Loop through and list the comments. Tell wp_list_comments()
    					 * to use twentyeleven_comment() to format the comments.
    					 * If you want to overload this in a child theme then you can
    					 * define twentyeleven_comment() and that will be used instead.
    					 * See twentyeleven_comment() in twentyeleven/functions.php for more.
    					 */
    					wp_list_comments( array( 'callback' => 'twentyeleven_comment' ) );
    				?>
    
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyeleven' ) ); ?></div>
    				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div>
    			</div><!-- .navigation -->
    <?php endif; // check for comment navigation ?>
    
    <?php else : // or, if we don't have comments:
    
    	/* If there are no comments and comments are closed,
    	 * let's leave a little note, shall we?
    	 */
    	if ( ! comments_open() ) :
    ?>
    	<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyeleven' ); ?></p>
    <?php endif; // end ! comments_open() ?>
    
    <?php endif; // end have_comments() ?>
    
    <?php comment_form(); ?>
    
    </div><!-- #comments -->


    [Please use the code buttons when posting code here - as is, your code may have been damaged.]

    But now my background is gone... You can see the website itsself here http://tourclubdekroon.nl/gastenboek/ How can I fix this problem? Please help!!

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Revert.

  3. BerlMan
    Member
    Posted 1 year ago #

    I forgot my password so I made a new account... I am BertMan...

    But what do you mean? Revert? Can you be more specific please?

  4. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    restore the file you edited from the backup you took before editing it. If you didn't make a backup, download a new copy of the the theme & replace the file you edited with a fresh copy.

Topic Closed

This topic has been closed to new replies.

About this Topic