This is done by editing your functions file. I would look in there and see how the “lire la suite” link was created.
There’s probably something that looks like this -http://codex.wordpress.org/Function_Reference/the_excerpt#Remove_.5B….5D_string_using_Filters
You’ll need to edit that function.
The title of your post indicated easy — I don’t know what you mean by that. Editing the function and getting the excerpt to display as you want is easy, but it depends on your coding skills.
Hey Christine, thanks for your answer.
I knew it was in the function file, but I just want to know what code to add, and where.
have you checked the link: http://codex.wordpress.org/Function_Reference/the_excerpt#Remove_.5B….5D_string_using_Filters
and tried to identify the corresponding code section in functions.php of your theme?
if you have found it, please post it here;
if not, please paste the full code of functions.php
(for anything over 10 lines long, please use the http://pastebin.com/ and post the link to it here.)
Yeah I found it. I want the […] to be at the end of my text, and not on my “Lire la suite” button.
There it is,
function grisaille_new_excerpt_more($more) {
global $post;
return '<br /><a class="more-link" href="'. get_permalink($post->ID) . '">Lire la suite</a>';
}
add_filter('excerpt_more', 'grisaille_new_excerpt_more');
Then you need to change your code above to:
function grisaille_new_excerpt_more($more) {
global $post;
return '[...]<br /><a class="more-link" href="'. get_permalink($post->ID) . '">Lire la suite</a>';
}
add_filter('excerpt_more', 'grisaille_new_excerpt_more');
Hey thanks alot. I knew it wasn’t a big change. 🙂
Thanks again, resolved.