• Resolved skyeandstone

    (@skyeandstone)


    I would like to change “Leave a Reply” to “Leave a Condolence” on the funeral home blog. I’ve been aimlessly searching files with no luck.

    Using wp theme Twenty Ten wrapped in a Rapidweaver theme.

    [moderated url]

    Thanks

Viewing 15 replies - 1 through 15 (of 38 total)
  • Try looking in the theme’s comments.php file.

    Thread Starter skyeandstone

    (@skyeandstone)

    I thought it would be there too, but it’s not.

    I looked through all of the pages on my edit page and the words “Leave a Reply” are not there.

    I also looked at all of the wordpress files in my blog folder on my server.

    Is there a hidden comments template?

    No there isn;t. Does your theme have a comments.php file?

    Thread Starter skyeandstone

    (@skyeandstone)

    Yes. I found a comments.php on my dashboard edit themes page.
    There is also a file by that name in my blog folder on my server.

    Something interesting, when I view source of my page the “Leave a Reply” is inside an area labeled with a plugin name WP-Blog. Not sure if that’s relevant or not, but it’s the only place I’ve seen the words I’m looking for.

    I’ve checked the source of your pages and there’s no apparent plugin involvement. Looks like the normal comments.php theme template to me – the one on your dashboard edit themes page.

    Thread Starter skyeandstone

    (@skyeandstone)

    Here’s what’s in the comment.php;

    <?php
    /**
     * The template used to display Comments
     *
     * The area of the page that contains both current comments
     * and the comment form.  The actual display of comments is
     * handled by a callback to twentyten_comment which is
     * located in the functions.php file
     *
     * @package WordPress
     * @subpackage Twenty Ten
     * @since 3.0.0
     */
    ?>
    
    			<div id="comments">
    <?php if ( post_password_required() ) : ?>
    				<div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></div>
    			</div><!-- .comments -->
    <?php
    		return;
    	endif;
    ?>
    
    <?php
    	// You can start editing here -- including this comment!
    ?>
    
    <?php if ( have_comments() ) : ?>
    			<h3 id="comments-title"><?php comments_number(
    				sprintf( __( 'No Responses to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' ),
    				sprintf( __( 'One Response to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' ),
    				sprintf( __( '%% Responses to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' )
    			); ?> </h3>
    
    <?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyten' ) ); ?></div>
    				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyten' ) ); ?></div>
    			</div>
    <?php endif; // check for comment navigation ?>
    
    			<ol class="commentlist">
    				<?php wp_list_comments( array( 'callback' => 'twentyten_comment' ) ); ?>
    			</ol>
    
    <?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyten' ) ); ?></div>
    				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyten' ) ); ?></div>
    			</div>
    <?php endif; // check for comment navigation ?>
    
    <?php else : // this is displayed if there are no comments so far ?>
    
    <?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
    
    <?php else : // if comments are closed ?>
    
    		<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
    
    <?php endif; ?>
    <?php endif; ?>
    
    <?php comment_form(); ?>
    
    </div><!-- #comments -->

    Please put large chunks of code in the Pastebin as per Forum Rules.

    This code isn’t as long as some that I’ve seen… But still, it’s important to keep the forums uncluttered.

    Thanks,
    MindBlender 3D

    Did you check the language file? I’ve been able to locate similar changes in there.

    The Leave a reply text is being generated within the comment_form() function at the bottom of your script. “Leave a reply” is the default value. To change this, you’ll need to pass some arguments to the comment_form function.

    $form_args = array( 'title_reply', 'Leave a comment' );
    <?php comment_form( $form_args ); ?>

    There are several other arguments you can override as well. They can be found in wp-includes/comment-template.php. Just search for Leave a Reply. You should find the args somewhere around line 1515

    Thread Starter skyeandstone

    (@skyeandstone)

    Thank you blepoxp!!!

    That worked great.

    And thanks to all of you for your input.

    Just in case someone else finds this later, there’s a typo in the array in my code. Use standard array syntax: array( 'title_reply' => 'Leave a comment or whatever you want it to say' );

    Thread Starter skyeandstone

    (@skyeandstone)

    After updating to 3.0, this solution doesn’t seem to work anymore. I went back in and made the same changes but no change was reflected to the wp page.

    What am I missing?

    Thread Starter skyeandstone

    (@skyeandstone)

    Thanks for the link, looks confusing but informative.

    So, is this resolved or what?

Viewing 15 replies - 1 through 15 (of 38 total)
  • The topic ‘How to change wording of "Leave a Reply"’ is closed to new replies.