WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Child Themes and WP-Includes (3 posts)

  1. goldmember
    Member
    Posted 3 years ago #

    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.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

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

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

  3. goldmember
    Member
    Posted 3 years ago #

    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.')); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.