Translation of Read More Button

resolved (6 posts) (3 voices)

  1. 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

    Posted 1 year ago #
  2. Elliott
    Support

    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.

    Posted 1 year ago #
  3. 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?

    Posted 1 year ago #
  4. Elliott
    Support

    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.

    Posted 1 year ago #
  5. tannera0
    Member

    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.

    Posted 2 months ago #
  6. Elliott
    Support

    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.

    Posted 2 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme