ying
(@yingscarlett)
Hi there,
For Search results for:, use this PHP snippet, replace Your new search results: with the actual title:
add_filter( 'generate_search_title_output', function( $output ) {
$search_query = get_search_query();
$new_output = sprintf(
'<header %s><h1 class="page-title">%s</h1></header>',
generate_get_attr( 'page-header' ),
sprintf(
/* translators: 1: Search query name */
__( 'Your new search results: %s', 'generatepress' ),
'<span>' . esc_html( $search_query ) . '</span>'
)
);
return $new_output;
} );
For Next and Previous:
https://docs.generatepress.com/article/generate_previous_link_text/
https://docs.generatepress.com/article/generate_next_link_text/
As for the Search and No matching records found , may I see them on your site?
Hi,
Thanks a lot — everything is working well.
Here’s a screenshot. The strings “Search:” and “No matching records found” might be coming from TablePress, but I couldn’t find them in the TablePress language file.
https://prnt.sc/oyrkphtErMHh
-
This reply was modified 1 year, 1 month ago by
hrant77.
ying
(@yingscarlett)
The Search looks like the WP search form’s placeholder text, if that is a WP search form, you should be able to change it in the block.
The “No matching records found” is not from GP, try disabling all plugins to see if that sentence is gone, if so, re-enable them one at a time to check which one is generate that string.