SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Is it safe to edit wp-includes/comments-template.php

  1. #1
    SitePoint Mentor bronze trophy

    Join Date
    Feb 2008
    Location
    Preston, UK. - LCA, Cyprus
    Posts
    1,258
    Mentioned
    58 Post(s)
    Tagged
    0 Thread(s)

    Is it safe to edit wp-includes/comments-template.php

    Hiya all,

    I need to edit the comments displayed on the website. I did some research and I found that in order to edit the form I have to edit wp-includes/comments-template.php. What concerns me is that this file is in the core files, an update to the CMS will replace the file causing me to loose all the changes.

    What should I do.

    I basically need to edit the title of Leave Reply, I wanted it in a H3, the issue could probably be resolved in CSS, but my goal is to understand WP better.


    Kind regards,
    Sega
    Preston Web Design | follow me on ayyelo

  2. #2
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2003
    Posts
    6,849
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be able to edit the comment form by editing "comments.php" in your themes directory.

  3. #3
    SitePoint Mentor bronze trophy

    Join Date
    Feb 2008
    Location
    Preston, UK. - LCA, Cyprus
    Posts
    1,258
    Mentioned
    58 Post(s)
    Tagged
    0 Thread(s)
    You can't edit the appearance though. You can only edit the appearance though the comments-template.php. I heard you can use minor scripts to do what I wanted, but it's not as flexible.
    Preston Web Design | follow me on ayyelo

  4. #4
    SitePoint Mentor bronze trophy

    Join Date
    Feb 2008
    Location
    Preston, UK. - LCA, Cyprus
    Posts
    1,258
    Mentioned
    58 Post(s)
    Tagged
    0 Thread(s)
    I found the solution on the WP site, http://wordpress.org/support/topic/c...-a-reply-title, it appear the edits need to be done on the function.php file.
    Preston Web Design | follow me on ayyelo

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •