-
AuthorPosts
-
September 27, 2016 at 1:41 pm #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,
September 29, 2016 at 2:23 pm #693114Hi 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!
YigitSeptember 30, 2016 at 4:36 pm #693906Hello 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,
September 30, 2016 at 9:06 pm #694039Hi,
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,
JordanOctober 1, 2016 at 9:12 am #694181Hello 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!
October 4, 2016 at 6:17 am #694880Hi,
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"> →</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,
IsmaelOctober 4, 2016 at 11:03 am #694957Hello 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,
October 7, 2016 at 6:43 am #696298Hi!
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,
IsmaelOctober 10, 2016 at 12:45 pm #697263Hello Ismael,
Works great, thanks!
-
AuthorPosts
- The topic ‘How to translate read more text in Blog’ is closed to new replies.