Hi, I’d like to change “Read more” text to my custom text: “Sprawdź szczegóły”. I’ve already searched for it on the forum and I found e.g. this Change read more text.
So I added this piece of code in the end of functions.php
in /wp-content/themes/pro-child
directory:
function new_excerpt_more($more) {
$stack = x_get_stack();
if ( $stack == 'integrity' ) {
return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Sprawdź szczegóły', '__x__' ) . '</a></div>';
} else if ( $stack == 'renew' ) {
return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Sprawdź szczegóły', '__x__' ) . '</a>';
}
}
add_filter('excerpt_more', 'new_excerpt_more');
As you can see, I’ve changed Read more
to Sprawdź szczegóły
.
Nothing changed. There’s still “Read more” there.
I use PRO child theme.
What am I doing wrong?