Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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;
    }

    #759435

    Hey 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,
    Mike

    #759443

    nope, that did not change read more button.

    http://zuniclaw.com/category/prava-stranaca/

    #759461

    Hi,
    Ok, try this, go to Appearance > Editor then in the loop-index.php (includes/loop-index.php) file search for ‘Read more’ it is found two times, change it to ‘Detaljnije…’ and save.
    postimage

    Best regards,
    Mike

    #759465

    i 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’);

    #760565

    hey guys any help here please?

    #760740

    Hi,

    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 theme

    Best regards,
    Yigit

    #761005

    Thank you very much it worked perfectly

    #761045

    Hi,

    Great! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘text "read more" button in posts different language’ is closed to new replies.