In Drupal, posts are automatically trimmed to create excerpts, and a “read more” or other like text is inserted in the end of your excerpt to give readers a link to the full page. But what if your entire article is shown in the excerpt and you want to get rid of the “read more” link?
There’s a really easy way to do this.
Drupal has a “break” tag, “
” (without the quotes), that overrides the default excerpt generation, and allows you to specify where the excerpt breaks from the main article. By placing this tag anywhere within an article, you can cause the except to appear shorter or longer, or include the full article without the “read more” link. To do this, simply have this tag at the end of the article, and just make sure there’s no spaces or any other characters after it.
It’s really that easy.
Questions, comments, or feedback? Please do so in the comments section below. Thank you!