Hi there,
ill pass the request on to Tom but you may be able to use the generate_hook_element_display
PHP filter:
https://docs.generatepress.com/article/generate_hook_element_display/
In the first example it uses a condition to display Element ID: 10 when Tom is the author:
if ( 10 === $element_id && is_author( 'Tom' ) ) {
Instead you could try:
if ( 10 === $element_id && strpos($_SERVER['REQUEST_URI'], 'keyword') !== false) {
Not sure – let me know.