-
AuthorPosts
-
March 10, 2017 at 11:29 pm #759170
Can you please help me?
How to change text of read more button in category page? http://zuniclaw.com/category/prava-stranaca/
i changed text of read more button on front page with custom css code: http://zuniclaw.com/
.mycss a.more-link:before {
content:’ Detaljnije… ‘;
font-size: 15px;
}.mycss a.more-link {
font-size: 0;
}but in category there is no blog post element where i can insert custom css class
Is there way with php code to change like i did it with logo images
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
$lang = pll_current_language(‘locale’);switch ($lang) {
case ‘en_GB’:
$logo = “image url.png”;
break;
case ‘sr_RS’:
$logo = “image url.png”;
break;
}return $logo;
}March 11, 2017 at 8:32 pm #759435Hey Uroš,
Try this, in functions.php at the end put the following and replace Read the full article.. with the text you need:// Replaces the excerpt "more" text by a link function new_excerpt_more($more) { global $post; return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read the full article...</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
Best regards,
MikeMarch 11, 2017 at 8:50 pm #759443nope, that did not change read more button.
March 11, 2017 at 9:48 pm #759461March 11, 2017 at 9:52 pm #759465i think that would change text on the english part too
Isn’t there way to combine this two codes:
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
$lang = pll_current_language(‘locale’);
switch ($lang) {
case ‘en_GB’:
$logo = “image url.png”;
break;
case ‘sr_RS’:
$logo = “image url.png”;
break;
}
return $logo;
}AND
function new_excerpt_more($more) {
global $post;
return ‘ID) . ‘”> Read the full article…‘;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);March 14, 2017 at 10:43 am #760565hey guys any help here please?
March 14, 2017 at 2:48 pm #760740Hi,
Sorry for the late reply!
You can simply translate untranslated strings to your language using this plugin – https://wordpress.org/plugins/loco-translate/ or this free software – https://poedit.net/. You can find language files in Enfold/lang folder.
If you are using a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/, you can refer to this post – http://kriesi.at/documentation/enfold/child-theme-translations/ and move your translations to your child themeBest regards,
YigitMarch 14, 2017 at 10:34 pm #761005Thank you very much it worked perfectly
March 14, 2017 at 11:53 pm #761045 -
AuthorPosts
- The topic ‘text "read more" button in posts different language’ is closed to new replies.