Excerpts are short extracts from your content that serve as a summary or description. They are a great way to improve user experience and search engine visibility. By default, WordPress only enables excerpts for posts, but you can also add them to your pages.
Unlike blog posts, pages in WordPress are stand-alone content used for static sections like About Us or Contact pages. However, adding excerpts to pages can make your site more organized, especially if you rely mainly on pages rather than posts.
With excerpts, visitors can quickly scan through your site and find the information they need. This not only improves user experience but also boosts engagement and SEO.
By default, WordPress does not enable excerpts for pages, but you can enable them by adding a simple code snippet.
Since manually editing your theme’s functions.php file can be risky, we recommend using WPCode, a safe and easy way to add custom code without breaking your site.
First, install and activate the WPCode plugin.
Once WPCode is activated, navigate to Code Snippets → Add New in your WordPress dashboard.
Then, copy and paste the following snippet:
add_post_type_support( 'page', 'excerpt' );
Save and activate the snippet, and that’s it! Excerpts will now be available for your pages.
Now that excerpts are enabled, you may want to display them in different areas of your site. You can do this by modifying your theme’s template files or using a page builder like Elementor or Breakdance.
Adding excerpts to pages enhances navigation and helps users find content more easily. Using WPCode ensures that your changes remain even after a theme update.
Have you tried adding excerpts to your WordPress pages? Let us know in the comments!