• Resolved manu.p

    (@manup-1)


    Hi Tomas, thanks for this nice theme.

    On a website I’m setting up these days (not yet online) with your premium theme, I’m not using excerpt displaying but content (general settings) and I expect the “more” tag to do the job and display a “read more…” button underneath the post lines displayed on the homepage. And that’s working fine.

    Now I was wondering how I could replace “(suite…)” (this is a site in french) to something different, say “Lire la suite…”

    So I fetched something to do this in the theme’s settings with no luck.

    All I could find was in functions.php :

    function brickyard_custom_excerpt_length( $length )
    ...

    But it looks like it’s related to excerpts not contents.

    Then I had a look to this Codex page and copied the following lines in function.php :

    add_filter( 'the_content_more_link', 'modify_read_more_link' );
    function modify_read_more_link() {
    return '<a class="more-link" href="' . get_permalink() . '">Lire la suite...</a>';
    }

    And it works.

    Now one thing is quite interrogating me : my included code shall be dropped on the next theme upgrade…

    And this code is not internationalised…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author TT Themes

    (@tomastoman)

    Hi,

    if you would like to customize the text that displays in the link to the full post content when you use the “Read More” tag, you can just place the text within the “Read More” tag:

    <!--more Lire la suite...-->

    To avoid overwriting your custom changes, please create a child theme and place your custom function into your child theme’s “functions.php” instead of modifying the original theme.

    Best regards,
    Tomas Toman

    Thread Starter manu.p

    (@manup-1)

    To avoid overwriting your custom changes, please create a child theme

    That’s what I’ve done, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Read more… on content displaying’ is closed to new replies.