How to have the "Read More" next to the text (with an excerpt)?
-
Here is the main page of my blog:
https://puu.sh/2u3T0You can see that the link “Lire la suite…” (meaning “Read more…”) is 2 lines below the excerpt (I created an excerpt).
To have the link “Lire la suite…”, I followed the advice in the Codex and added the following code in the functions.php of my TwentyTwelve child theme:
function excerpt_read_more_link($output) { global $post; return $output . '<a href="'. get_permalink($post->ID) . '"> Read More...</a>'; } add_filter('the_excerpt', 'excerpt_read_more_link');
But, I would prefer the link “Lire la suite…” to appear right after the text, not 2 lines below (exactly as if I would not make any excerpt).
Is there anything I can do (e.g. modifying the code) to reach this goal?
Thank you for your help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to have the "Read More" next to the text (with an excerpt)?’ is closed to new replies.