WordPress.org

Support

Support » Themes and Templates » [Resolved] Child Themes and WP-Includes

[Resolved] Child Themes and WP-Includes

  • goldmember

    @goldmember

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    @esmi

    Forum Moderator

    http://codex.wordpress.org/Function_Reference/comment_form

    Don’t hack core files unless you really, really, know what you’re doing.

    goldmember

    @goldmember

    thanks. i learned that i don’t need to edit that file. Instead I open the child theme comments.php template and find comment_form().
    And I add an argument for the reply text, like this:
    <?php comment_form(array('title_reply' => 'Leave A Comment About This Business.')); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Child Themes and WP-Includes’ is closed to new replies.
Skip to toolbar