Change text from button 'Read more' into our
-
Yes, it is Read more. But it is used in homepage panes only.
<?php
function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'Leave comment' => 'Skomentuj',
'Read more' => 'Czytaj dalej',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );
?>I mean, the “Read more” text is used in homepage panes only. Have you enabled the homepage panes? Can you post link to your site and tell which part do you want to translate?
Yep, I see, but actually ‘Leave comment’ is also only at homepage, like ‘read more’. But since it’s all workin well with ‘Leave a comment’, for some reason nothing happend when i want to change ‘Read More’.
I cant post link to my site, cuz i’m working on it offline throught XAMPP application.
You could change the language to English and check what’s the exact English word for it.
You can’t change theme’s language. You have to change WordPress language in wp-config.php
Change
define ('WPLANG', 'pl_PL');
to
define ('WPLANG', '');
Viewing 10 posts - 11 through 20 (of 20 total)
- 1
- 2
- You must be logged in to reply to this topic.