NetChimp

Cheap Web Design, Search Engine Optimisation & Conversion Rate Optimisation

  • Start Here
  • About
  • Clients & results
  • Services
    • Website Reviews
    • Web Site Design
    • Website Conversion
    • Search Engine Optimisation (SEO)
    • Ways To Pay For Your Website
  • Portfolio
  • Articles
    • Useful Resources
    • Conversion Rate Optimistation (CRO)
    • IR35
    • Joomla!
    • Marketing
    • Search Engine Optimision (SEO)
    • Usability
    • Web Design
    • WordPress
  • Learning Zone
    • Free Report
  • Contact
You are here: Home / Web Design / Change length of WordPress blog summary

Last Edited : September 8, 2015

Change length of WordPress blog summary

My particular WordPress theme looked great but I found it a bit frustrating when I could only see a dozen or so words before “Read More”. It was not enough to generate interest in the article so I had to find out how to increase it. It’s actually fairly simple when you know how!

To be honest I expected this to be a configuration option within WordPress. After all, it is just a change in the number of words that appear.  I would have thought it would have been a simple process to add an option where you type in the maximum number of words required. Turns out I was wrong.

You have to make a change to the source code for your template. However, it is a fairly simple thing to do.

To change this log into your dashboard and then go to Appearance and Editor. Select Theme functions from the list so you can see the source code. Scroll through the code until you see an entry which says something like

function new_excerpt_length($length) {
return 55;
}
add_filter(‘excerpt_length’, ‘new_excerpt_length’);

All you need to do is change 55 to the number of words you would like to see.

It is also possible that your WordPress theme has the default limit so you won’t find an entry in this file. If this is the case add the following to the file

add_filter(‘excerpt_length’, ‘my_excerpt_length’);
function my_excerpt_length($length) {
return 55; }

Again, you can change the figure 55 to the number of words you want to appear in your WordPress blog summary.

I would have thought this is a fairly easy thing for a theme designer to add. Or a small modification for WordPress to add. It would then allow you to change the number of words without having to mess around with the code. After all, if you upgrade to a new version of your theme these changes will be overwritten so having it as a configuration setting would make it simpler all round.

Did you find this post helpful?

If you found this post helpful please take a moment to tweet, like, or share this article by using the buttons at the top or bottom of this page. I’d really appreciate it. 🙂 Also, if you are feeling extra generous please leave some encouraging feedback in the comments section at the bottom of the page. I love getting feedback from visitors. It encourages me to continue writing useful articles for readers like you. Thanks for taking the time to read my website! You can find other articles that you might find useful at the bottom of this post. Enjoy!


You may also like

14 tips when using direct mail
Prototype Your Web Design And You Will Save Money
Multinational Web Development
Online Shop And Ecommerce Web Design
Recruitment Web Design

Filed Under: Tips, WordPress Tagged With: fix, help, how to, wordpress

About Kevin Craighead

Hi! My name is Kevin Craighead and I am the guy behind NetChimp.

I have been working in the computer industry since 1988 although my love of electronics goes back even further to my first experience of Pong in the late 70's.

Comments

  1. Sandy says

    October 1, 2014 at 3:57 pm

    thanks, nice article, it helped me a lot

    Reply
  2. Veronica says

    November 6, 2013 at 7:40 pm

    I want to shorten my posts on the main page of my WordPress blog. I tried telling it to show summaries but it didn’t work so I want to try this option. Where do I put the code for excerpt length whiten my code?

    Reply
    • Kevin Craighead says

      November 7, 2013 at 11:46 am

      To change this log into your dashboard and then go to Appearance and Editor. Select Theme functions from the list so you can see the source code.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Me

kevin craighead netchimpHi! My name is Kevin Craighead and I am the guy behind NetChimp. I have been working in IT since 1988 but my love of gadgets goes back to my first experience of Pong in the late 70's.MORE →

Popular Stories & Tips

Contact Details

  • ADDRESS:
    Cirrus Building, 6 International Avenue, ABZ Business Park, Dyce, Aberdeen AB21 0BH
  • PHONE:
    01904 230477
  • OFFICE HOURS:
    Mon - Fri 9:30 am to 5:30 pm.

Company Details

  • REGISTERED ADDRESS:
    Change Accountants, 2 Forest Farm Business Park, Fulford, York YO19 4RH
  • COMPANY NO:
    Registered in England and Wales: 7632651

Web Design Links

  • Web Design York
  • SEO York
  • Web Design Aberdeen
  • Web Design Hull
  • Web Design Sheffield
  • 50 Incredible Tips For A Successful Website

Contact Details

NetChimp, Cirrus Building, 6 International Avenue, ABZ Business Park, Dyce, Aberdeen AB21 0BH

CALL:
01904 230 477

OFFICE HOURS:
Mon - Fri 9:30 am to 5:00 pm.

Recent Posts

  • How To Setup WordPress for AMP: Accelerated Mobile Pages
  • Is Your Website Underperforming?
  • How Much Should a Website Cost?
  • How to add Google AdSense Responsive Ads to WordPress
  • Consequences And Responsibilities Of IR35 Regulations

©2019 NetChimp Limited. All rights reserved | See us on Google Earth | Web Design York | Small Business Web Designer | Web Design in York

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.Accept
Cookie Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT