Title: Remove filter from child theme
Last modified: August 21, 2016

---

# Remove filter from child theme

 *  Resolved [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/remove-filter-from-child-theme/)
 * In a child theme, I want to change the custom ‘read more’ link text set in functions.
   php
 *     ```
       // Custom more-link text
       add_filter( 'the_content_more_link', 'hemingway_custom_more_link', 10, 2 );
   
       function hemingway_custom_more_link( $more_link, $more_link_text ) {
       	return str_replace( $more_link_text, __('Continue reading', 'hemingway'), $more_link );
       }
       ```
   
 * I’ve read what i can understand about replacing functions, but can’t get the 
   syntax right.

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

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/remove-filter-from-child-theme/#post-4880692)
 * Not clear on exactly what you want to do. Do you just want to change the function
   you showed, or remove that function and create a new one? What do you want the
   link to say?
 *  Thread Starter [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/remove-filter-from-child-theme/#post-4880694)
 * Thanks.
 * I just want to be able to change the ‘Continue reading’ text.
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/remove-filter-from-child-theme/#post-4880695)
 * If the function you showed is in the parent’s functions.php, then you need to
   remove the filter and add your own function. Try this:
 *     ```
       remove_filter( 'the_content_more_link', 'hemingway_custom_more_link', 10, 2 );
   
       add_filter( 'the_content_more_link', 'my_custom_more_link', 10, 2 );
   
       function my_custom_more_link( $more_link, $more_link_text ) {
       	return str_replace( $more_link_text, __('Read More', 'hemingway'), $more_link );
       }
       ```
   
 *  Thread Starter [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/remove-filter-from-child-theme/#post-4880700)
 * Excellent. Thanks.

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

The topic ‘Remove filter from child theme’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [gulliver](https://wordpress.org/support/users/gulliver/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/remove-filter-from-child-theme/#post-4880700)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
