Introducing Solo Pine Mods | An affordable & reliable way to customize your theme

Okay
  Print

How do I add the "Continue Reading" link to posts in Sprout & Spoon?

Please note: This FAQ Article is specifically for the Sprout & Spoon theme.




The "Continue Reading" link in Sprout & Spoon is a wonderful tool-- It gives your site's visitors a taste of your posts as well as keeps your homepage tidy & more easily navigable instead of displaying 100% of every post.

Sprout & Spoon gives you the option of either manually adding the "Continue Reading" link to each post, or, auto-applying the "Continue Reading" link to all posts with the click of a button. 

Both options have pros & cons. We'll go over the differences between the two and how to enable either option below.





MANUALLY ADDING THE CONTINUE READING LINK:

Also known as the "Read More" tag, you can add the "Continue Reading" link to a post within the post's "create/edit" screen. Some people prefer the customizability of this option as they can choose where within the post they'd like to place the button and just how much content of the post they'd like shown on the homepage. 

The downside is that manually inserting the "Read More" tag can be a bit tedious as it needs to be inserted into each of your posts.

For instructions on how to go about manually adding the "Read More" tag, check out: How do I add the "Continue Reading" link?



AUTO-APPLYING THE CONTINUE READING LINK:

Another option would be to have the theme automatically apply this "Read More" tag into all of your posts. This is a great option if your site already has a large number of posts that you'd rather not go through and manually apply the "Read More" tag to. Or, if you'd like the ease of simply not worrying about this extra step for all future posts.

One thing to note is that this method uses the WordPress "excerpt" function. This function will filter out any HTML code including images and hyperlinks inserted at the beginning of your post (not including the Featured Image), so your excerpt will only display static text, not pictures.

If it's important to you to have hyperlinked text or images within your post summary on the homepage/blog post page, you may want to consider the option above for manually inserting the "Continue Reading" link. 

To auto-apply the "Read More" tag to all of your posts, navigate to WP Dashboard > Appearance > Customize > General Settings > scroll down a bit in the left-hand menu to the section titled "Homepage/Archive Post Summary Type" > choose the "Use Excerpt" option. Be sure to save.





CHANGING THE AUTO-APPLY WORD COUNT TO LENGTHEN/SHORTEN POST EXCERPTS:

If you use the option to auto-apply the "read more" tag to your posts, WordPress uses the "excerpt" function. WordPress determines where to place the "Read More" tag within your post based on how many words it counts through from the start of the post.

By default, Sprout & Spoon's excerpt will count through 70 words before inserting the "Continue Reading" link for standard posts and 29 words for list layout posts.
You can change the number of words by making a slight adjustment to the theme's related layout file.


TO CHANGE THE EXCERPT WORD LENGTH FOR STANDARD POSTS

Navigate to Appearance > Editor > and open up the file titled "content.php"
On Line 93, you will see this line of code:

<p><?php echo sp_string_limit_words(get_the_excerpt(), 70); ?>…</p>


Do you notice the "70" number value in that code? This is the number of words the standard post layout's excerpt will display before automatically adding in the "Continue Reading" button. You can change the "70" number value to whatever number you prefer.
Please save changes to the file when finished.



TO CHANGE THE EXCERPT WORD LENGTH FOR LIST LAYOUT POSTS

Navigate to Appearance > Editor > and open up the file titled "content-list.php"
On Line 18, you will see this line of code:

<p><?php echo sp_string_limit_words(get_the_excerpt(), 29); ?>…</p>


Do you notice the "29" number value in that code? This is the number of words the list post layout's excerpt will display. You can change the "29" number value to whatever number you prefer.
Please save changes to the file when finished.