• Hi all
    What I want to it must be simple, or I thing so…
    I will like to rename the (Leave a comment to this post) to
    (Add your travel idea)
    Is that possible?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Sure, that should be a very simple change to make. What theme are you using?

    Open your active theme folder (in your host) and search for all ocurrences of “Leave a comment to this post” inside .php files, then change that phrases to “Add your travel idea”.
    The files probably are “page.php” and “single.php”, inside your theme’s folder.

    Thread Starter Night Hawk

    (@mlao)

    I have the varg Theme
    But I cant see nothing like “Leave a comment to this post” inside this .php files page.php” and “single.php”,
    This is the code for page.php

    <?php get_header(); ?>
    <div id="content"><!-- start main content -->
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div class="textbackground" id="post-<?php the_ID(); ?>">
    			<div class="pagemain">
    				<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link To: ','varg') . the_title();?>"><?php the_title(); ?></a></h1>
    				<small><?php _e("Published under ","varg")?><?php the_category(',') ?>. <?php the_tags(__('Tags: '), ', ', '. '); ?></small>
    				<div class="entry"><?php the_content(); ?></div>
    				<?php link_pages(' __("<p>Pages: ")', '</p>', 'number'); ?>
    			</div>
    		</div>
    	<?php endwhile; else: ?>
    		<div class="results">
    			<h3><?php _e("Sorry, no posts matched your criteria.","varg")?></h3>
    			<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    		</div>
    	<?php endif; ?>
    </div><!--end main content, include 2 right hand sidebars -->
    <?php include(TEMPLATEPATH."/left.php");?>
    <?php include(TEMPLATEPATH."/right.php");?>
    <?php get_footer(); ?>

    And this for single.php

    <?php get_header(); ?>
    <div id="content"><!-- start main content -->
      	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="textbackground" id="post-<?php the_ID(); ?>">
    			<div class="post-date">
    				<div><?php the_time('D') ?></div>
    				<div><?php the_time('d') ?> <?php the_time('M') ?></div>
    				<?php edit_post_link('<img src="' . get_bloginfo('template_directory') . '/images/note_edit.png" class="dateimg" alt="' . __('Edit','varg') . ' "/>')?>
    			</div>
    			<div class="postmain">
    				<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link To: ','varg') . the_title();?>"><?php the_title(); ?></a></h1>
    				<small><?php _e("Published under ","varg")?><?php the_category(',') ?>. <?php the_tags(__('Tags: '), ', ', '. '); ?></small>
    				<div class="entry"><?php the_content("[...]"); ?></div>
    			</div>
    		</div>
    		<?php comments_template(); ?>
    	<?php endwhile; else: ?>
    		<div class="results">
    		<h3><?php _e("Sorry, no posts matched your criteria.","varg")?></h3>
    		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    		</div>
    	<?php endif; ?>
    </div><!--end main content, include 2 right hand sidebars -->
    <?php include(TEMPLATEPATH."/left.php");?>
    <?php include(TEMPLATEPATH."/right.php");?>
    <?php get_footer(); ?>

    I cand find nothing here that say “Leave a comment to this post”
    Any Ideas?

    The file you want to edit is called “comments.php”. You should find the text you want to edit on line 55:

    <h2 id="respond"><?php _e('Leave a comment to this post','varg'); ?></h2>

    Thread Starter Night Hawk

    (@mlao)

    Thank you jleuze!

    No problem!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Leave a comment’ is closed to new replies.