Child Themes and WP-Includes

Discussion in 'WordPress' started by sixrfan, Nov 18, 2010.

  1. #1
    I need to edit something in the wp-includes\comment-template.php folder, but i'm using the parent/child theme relationship. I don't want to edit anything that will be overriden when the parent theme updates. I know that to override all the stuff in the wp-content/themes/parent-theme-folder i create a child theme in a folder at wp-content/themes/child-theme-folder. But what do I do if I want to override something in the wp-includes\comment-template.php???

    Specifically, I want to edit where it says "Leave A Reply" in the comments area to something like "Leave A Comment About This Business".

    Please advise what I should do, that will protect from parent theme updates overriding my changes???? Thanks in advance.
     
    sixrfan, Nov 18, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No need to edit that, just open your child theme comments.php template and find comment_form().
    Add an argument for the reply text, like this:
    <?php comment_form(array('title_reply' => 'Leave A Comment About This Business.')); ?>

    Hope that works! :)
     
    Cash Nebula, Nov 20, 2010 IP
  3. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    that worked. thank you!!!
     
    sixrfan, Nov 21, 2010 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You're welcome :) You can change pretty much any part of the form with comment_form() parameters.
     
    Cash Nebula, Nov 21, 2010 IP