I’m using a page template in my Bootstrap child theme to display a list of custom posts with an excerpt. Each excerpt has the “continue reading” link on, which I’d like to remove.
Having look in the parent functions.php it tells me to simply remove the two filters (hooking into excerpt_more and get_the_excerpt) to get rid of this.
So, in my child functions.php I have the following;
remove_filter( 'get_the_excerpt', 'the_bootstrap_custom_excerpt_more' ); remove_filter( 'excerpt_more', 'the_bootstrap_auto_excerpt_more' );
However, the “continue reading” link remains. I have tried adding the priority parameter, using 10, 1, 11 and 20 as values but that made no difference.
Commenting out the add_filter() calls in the parent functions.php appears to be the only way to get the link to go away.
This is one of those “I can’t understand why it won’t work!” scenarios so I’m guessing the solution is starring me in the face…any help opening my eyes is appreciated!
- The topic ‘Removing the excerpt "continue reading" link’ is closed to new replies.