Read more… on content displaying
-
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…
- The topic ‘Read more… on content displaying’ is closed to new replies.