Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #692225

    Hello,

    I have tried to translate it looking into the php elements and also used Loco translate but still no luck.

    Can you please help me to translate “read more” into estonian “Loe edasi”.

    Also I cannot find the place where can I delete the “Page 1 of 2” line above the Blog, can you please delete it for me or give me the CSS code if it can be done that way.

    Best Regards,

    #693114

    Hi pimroll!

    Can you please try using this free software – https://poedit.net/ and edit language files in enfold/lang folder? Please make sure to update the file before editing.

    Cheers!
    Yigit

    #693906

    Hello Yigit,

    I actually downloaded the plugin you recommended earlier (Loco Translate) and I made a new language and found the “read more” line and translated it but it still is not showing in the live site, am I doing something wrong?

    Can you please check?

    Best Regards,

    #694039

    Hi,

    Try adding the following code instead to the bottom of your functions.php file:

    
    // Replaces the excerpt "Read More" text by a link
    function new_excerpt_more($more) {
           global $post;
    	return '<a class="moretag" href="'. get_permalink($post->ID) . '"> YOUR TEXT HERE</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    Change where it says Your text here. Let me know how it goes.

    Best regards,
    Jordan

    #694181

    Hello Jordan,

    It seems to affect the related post field and there its ok but in the homepage (blog post) area and in the Blog main page there is still “read more” in english.

    Can you please check?

    Thanks!

    #694880

    Hi,

    Please replace the code with the following:

    function avf_post_slider_entry_excerpt_mod($excerpt, $prepare_excerpt, $permalink, $entry ) {
    	$permalink = '
    <div class="read-more-link"><a href="'.get_permalink($entry->ID).'" class="more-link">'.__('CHANGE THIS TEXT','avia_framework').'<span class="more-link-arrow">  &rarr;</span></a></div>
    ';
    
    	return $permalink;
    }
    add_filter('avf_post_slider_entry_excerpt', 'avf_post_slider_entry_excerpt_mod', 10, 4);

    Change the text. (CHANGE THIS TEXT)

    Best regards,
    Ismael

    #694957

    Hello Ismael,

    It works, the “read more” is now translated in the front page and in the blog homepage.

    But the problem is that the excerpt text above the “read more” is now missing, picture here: http://imgur.com/a/XMnS8

    Maybe we can change the code, so it will be there again?

    Best Regards,

    #696298

    Hi!

    I’m sorry about that. Please remove the code then replace it with this.

    // custom script
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    	?>
    	<script type="text/javascript">
    	(function($) {
    		function a() {
    			$(".read-more-link a").empty().text('CHANGE THIS TEXT');
    		}
    
    		a();
    	})(jQuery);
    	</script>
    	<?php
    }

    Adjust the text.

    Regards,
    Ismael

    #697263

    Hello Ismael,

    Works great, thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘How to translate read more text in Blog’ is closed to new replies.