• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to translate the 'Continue Reading…'

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to translate the 'Continue Reading…'

This topic is: not resolved

Tagged: Translate

  • This topic has 2 replies, 3 voices, and was last updated 7 years, 11 months ago by Martina.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 21, 2013 at 10:52 am #63673
    Hallermand
    Member

    Hi

    I would like to translate the text 'Continue Reading...' (the link for visit af specific post).

    The theme I use is Balance.

    I have translated the text via home.php but this is only changing the text at the frontpage. Therefore I also added the:

    //* Modify the Genesis content limit read more link
    add_filter( 'get_the_content_more_link', 'sp_read_more_link' );
    function sp_read_more_link() {
    return '... Klik og læs mere...';
    }

    This code change the text at the archive pages so now I only miss to change the very first blog post at the top, I don't know why this is not being changed through the home.php? I always use the "Read More-Tag" because else the post is cover the whole frontpage.

    Here is an example: http://ili.dk/ (The first blogpost is still the 'Continue Reading' text.

    I know I can use this code for translate the Read More-Tag;

    //* Modify the WordPress read more link
    add_filter( 'the_content_more_link', 'sp_read_more_link' );
    function sp_read_more_link() {
    return '[Continue Reading]';
    }

    But when using this code, then i always got a fault message.

    Maybe that is because I also have added this code? I don't know.

    //* Modify the length of post excerpts
    add_filter( 'excerpt_length', 'sp_excerpt_length' );
    function sp_excerpt_length( $length ) {
    return 50; // pull first 50 words
    }

    - Can you please help me with this problem?

    Thanks a lot. 🙂

    November 12, 2014 at 6:05 pm #131353
    mickx
    Member

    Found it! (I think). In the theme-file function-php:

    /** Customize 'Read More' text */
    add_filter( 'get_the_content_more_link', 'balance_read_more_link' );
    add_filter( 'the_content_more_link', 'balance_read_more_link' );
    function balance_read_more_link() {
    return '' . __( 'Lees meer...' ) . '';

    As you can see, I changed 'continue reading' in the Dutch words 'Lees meer...'

    February 27, 2015 at 4:52 am #142512
    Martina
    Member

    The code above does not work. I have tried this. As you can see above, the blue characters are showing: something is wrong with this code.

    The correct code I have found on this website:

    http://wpfab.com/edit-the-read-more-link-on-blog-or-content-archive-pages/

    Works like a charm 🙂

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble