This code works, thank you very much!
Hello Wen Solutions,
The site URL is https://www.scholing-online.nl
I created a child theme and it looks likes the theme works. But I cannot get the translation to work. What do I wrong?
functions.php:
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
add_filter( 'gettext', 'theme_change_comment_field_names', 20, 3 );
function theme_change_comment_field_names( $translated_text, $text, $domain ) {
if ( is_singular() ) {
switch ( $translated_text ) {
case 'Contact Me' :
$translated_text = __( 'Neem contact op', 'Bizlight' );
break;
case 'Download Resume' :
$translated_text = __( 'Mijn CV', 'Bizlight' );
break;
}
}
return $translated_text;
}
?>
Do I need to install additional plugins to get it to work?