Thanks Michael,
I’m doing something wrong while trying to implement your solution.
I’ve replaced the word ‘specific’ with the word in the sentence I want to style differently.
Otherwise I’ve used your code. When I save the function.php file and reload the website, I don’t see any changes in the resulting html code (I check it by using ‘inspect element’ in safari).
Here’s the code in my functions.php file:
function replace_description( $info, $show ) {
if ( $show == 'description' ) {
$info = str_replace( 'zichtbaar', '<span class="different">zichtbaar</span>', $info );
}
return $info;
}
add_filter( 'bloginfo', 'replace_description', 12, 2 );
And this is the resulting html:
<h3 class="site-description"><span>Communicatietraining met zichtbaar resultaat</span></h3>
My php knowledge is embryonic, so thanks for your patience.