Title: Changing text
Last modified: June 25, 2023

---

# Changing text

 *  Resolved [bunnycake](https://wordpress.org/support/users/bunnycake/)
 * (@bunnycake)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/changing-text-13/)
 * On the comment section, I want to change the comment title text
 * from “Leave a Reply” to, say, Comments? What CSS code should I use for this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchanging-text-13%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [FahimMurshed](https://wordpress.org/support/users/fahimmurshed/)
 * (@fahimmurshed)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/changing-text-13/#post-16846067)
 * I have checked that you are using the Astra theme. That’s not CSS but add some
   PHP code to change the text strings.
 * Add this code to the child-theme functions.php file to change the text strings.
 *     ```wp-block-code
       add_filter('comment_form_defaults', 'wpastra_custom_comment_title', 20);
       function wpastra_custom_comment_title( $defaults ){
         $defaults['title_reply'] = __('Leave Your Thoughts Here...', 'astra');
         return $defaults;
       }
       ```
   
 * If you want to change the title tag, use this.
 *     ```wp-block-code
       add_filter( 'comment_form_defaults', 'leave_a_comment_title_tag' );
       function leave_a_comment_title_tag( $defaults ){
         $defaults['title_reply_before'] = '<p id="reply-title" class="comment-reply-title">';
         $defaults['title_reply_after'] = '</p>';
         return $defaults;
       }
       ```
   
 * Further any Astra related, support, I would highly suggest post it here [https://wordpress.org/support/theme/astra/.](https://wordpress.org/support/theme/astra/.)
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/changing-text-13/#post-16846748)
 * For a small text change like this, it may not be worth the hassle of creating
   AND maintaining a child theme.
 * In this case, a quick CSS text replacement hack should be an acceptable solution.
 *     ```
       h3#reply-title {
          visibility: hidden;
       }
       h3#reply-title:before{
           visibility: visible !important;
           content: "Comments";
       }
       ```
   
 *  Thread Starter [bunnycake](https://wordpress.org/support/users/bunnycake/)
 * (@bunnycake)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/changing-text-13/#post-16846981)
 * Perfect!
    -  This reply was modified 2 years, 9 months ago by [bunnycake](https://wordpress.org/support/users/bunnycake/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing text’ is closed to new replies.

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [css](https://wordpress.org/support/topic-tag/css/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 3 participants
 * Last reply from: [bunnycake](https://wordpress.org/support/users/bunnycake/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/changing-text-13/#post-16846981)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
