Forums

[resolved] Leave a comment (7 posts)

  1. mlao
    Member
    Posted 3 years ago #

    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?

  2. JLeuze
    Member
    Posted 3 years ago #

    Sure, that should be a very simple change to make. What theme are you using?

  3. riledhel
    Member
    Posted 3 years ago #

    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.

  4. mlao
    Member
    Posted 3 years ago #

    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?

  5. JLeuze
    Member
    Posted 3 years ago #

    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>

  6. mlao
    Member
    Posted 3 years ago #

    Thank you jleuze!

  7. JLeuze
    Member
    Posted 3 years ago #

    No problem!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.