Changing search query text
-
Hello, is it possible to add translation options for plugin on texts like:
‘Search query for: ‘
‘Error 404’
‘( Page %s )’It can be done with changes in divi-breadcrumbs.php on line 282, 287, 293 (adding langstring ‘lwp-divi-breadcrumbs’), like:
if ( is_search() ) { $breadcrumb_trail = __( 'Search query for: ', 'lwp-divi-breadcrumbs' ) . $before . get_search_query() . $after; }
It would be easier to translate with plugins like Loco Translate and there would be no problem after updates – when some custom code for translations is overwritten by update.
If it’s not possible – is there any other option to get permanent translation that’ll not dissapear after plugin update?
- The topic ‘Changing search query text’ is closed to new replies.