Hi Ying,
Thank you so much for the prompt response! Above solution worked well for posts but not for pages. Is there anything I need to do to implement it on a specific page only?
update: I found a solution! I just asked chatGPT to rewrite for a page and it worked! π
// Change comment form title and submit button for specific page with ID 123
add_filter( 'generate_leave_comment', function () {
if ( is_page( 123 ) ) {
return 'Comment title text';
}
return 'Leave a Comment';
} );
add_filter( 'generate_post_comment', function () {
if ( is_page( 123 ) ) {
return 'Post comment button text';
}
return 'Post Comment';
} );