Hi @Lecoqdigital,
Thanks for reaching out.
You can’t translate the post type slug, but, if it’s just a single language site then you can just edit it in Theme Options > Portfolio > CUSTOM URL SLUG . Then go to Admin > Settings > Permalinks and re-save it to make sure the new permalink for portfolio is applied. Then, you can change the labels there too
Then for the filter by category, assuming you’re only changing the wording and not actually translating it then add this code to your child theme’s functions.php
add_filter('gettext', 'x_change_text', 20, 3);
function x_change_text( $translated_text, $untranslated_text, $domain ) {
if ( $untranslated_text == 'Filter by Category') return 'YOUR TEXT HERE';
return $translated_text;
}
Just make sure to change the YOUR TEXT HERE
with your preferred word.
Thanks!