Hello!
Where can I translate all the 'Read More' buttons (slider, blog and portfolio)?
Than I'll have the site completely in Dutch too! :)
Thanks in advance!
Frans
(6 posts)
(3 voices)
Hello!
Where can I translate all the 'Read More' buttons (slider, blog and portfolio)?
Than I'll have the site completely in Dutch too! :)
Thanks in advance!
Frans
Hello fransotter,
For the sliders you would need to open up /wp-content/themes/infocus/lib/includes/featured-categories.php and featured-custom.php and the Read More button should be around lines 30 - 70 in each file.
For the blog you would need to open up /wp-content/themes/infocus/lib/includes/template-blog.php and it should be around line 209.
For the portfolio open up /wp-content/themes/infocus/lib/includes/template-portfolio-gallery.php and it should be around line 236, you will also find the "Visit Site" text there also.
Let me know if this helps fransotter.
Hi Elliot,
Thanks, I changed those files before I wrote to your support but that didn't had any effect.
I emptied the cache of the browsers and that had no effect too.
However when I emptied all performance caches in WordPress the translation of the button showed up!
I could have thought of that earlier aldo, it doesn't make much sense to me.
So empty all caches is the trick?
Just changing the files would have worked I thought. It is interesting that you got it to work by flushing your cache, thanks for sharing this fransotter.
Hi,
"For the blog you would need to open up /wp-content/themes/infocus/lib/includes/template-blog.php and it should be around line 209."
How do I do this with the new echelon patch? I can't find template-blog.php, I just need to translate the "Read more" in the blog excerpt.
Thanks.
Hello tannera0,
Try line 1246 or 1254 in /wp-content/themes/[your_theme]/lib/functions/theme.php,
$out = '<span class="post_more_link"><a class="post_more_link_a" href="' . esc_url( get_permalink( $post->ID ) ) . '">' . __( 'Read More', MYSITE_TEXTDOMAIN ) . '</a></span>';
If your translating the theme texts though an easier way would be to use the .pot file, http://mysitemyway.com/docs/index.php/Translating_your_site.
You must log in to post.