WordPress.org

Ready to get started?Download WordPress

Forums

Differet comments in differet pages (2 posts)

  1. Waterhead
    Member
    Posted 4 years ago #

    Example. I have two pages namet Page1 and Page2, and i want to make Page1 commenting title "Leave a comment" wich is default, and Page2 i want to change that leave a comment to leave a story. Can it be done??

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Yes- by editing your theme's comments.php template file, locating the cirrent "Leave a comment" line and replacing it with something like:

    <?php if ( is_page ('Page2') ) $c_text = 'Leave a story';
    else $c_text ='Leave a comment';?>
    <a href="#respond"><?php echo $c_text;?></a>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.