Meet Laurel! Our latest Blog & Shop WordPress theme.

Okay
  Print

How do I add the "Continue Reading" button to posts in Redwood?

Please note: This FAQ Article is specifically for the Redwood theme.



The "Continue Reading" button in Redwood is an excellent 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.

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


Please note: By default, the "Continue Reading" button can only be added to Standard posts (not Grid or List layout). If you'd like to add the "Continue Reading" button to your Grid and/or List items, check out this article: Add "Read More" link to Grid or List Layout posts in Redwood






OPTION 1 ) MANUALLY ADDING THE 'CONTINUE READING' BUTTON:

Also known as the "Read More Tag", you can add the "Continue Reading" button 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.

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




OPTION 2 ) AUTO-APPLYING THE 'CONTINUE READING' BUTTON:

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 "Excerpt" function will filter out any images at the beginning of your post (not including Featured Images), so your excerpt will only display text, not pictures.

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





CHANGING AUTO-APPLIED EXCERPT'S LENGTH:

WordPress determines where to place the Read More tag within your post based on how many words it counts through. By default, Redwood will count through a set number of words Continue Reading button or simply tapering off with "...". You can change the number of words by making a slight adjustment to the theme's related file.


Changing the excerpt length for Standard Post layout:

To change how many words WordPress counts through before inserting the "Continue Reading" button on standard posts, you can navigate to WP Dashboard > Appearance > Editor > and open up the file titled "content.php". 

The code we need to alter is on Line 91. If you do not have line numbers in your theme file, it may be easiest to do a "CTRL + F" search function within the file for the search term:      hellip
This will automatically take you down to Line 91. 

On Line 91, you will see this line of code:

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


Do you see the number "80" in this line of code? This is how many words WordPress will count through before inserting the "Continue Reading" button. Feel free to change this number to whatever you prefer. 

Please be sure to save changes in the document when finished. 


Changing the excerpt length for Grid Post layout:

To change how many words WordPress counts through before inserting the "..." on your Grid Layout post items, you can navigate to WP Dashboard > Appearance > Editor > and open up the file titled "content-grid.php". 

On Line 28, you will see this line of code:

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


Do you see the number "31" within the line of code? This is how many words WordPress will display from your post before tapering off and adding "...". You can change this number to whatever you prefer. 

Please be sure to save changes when finished. 



Changing the excerpt length for List Post layout:

To change how many words WordPress counts through before inserting the "..." on your List Layout post items, you can navigate to WP Dashboard > Appearance > Editor > and open up the file titled "content-list.php". 
On Line 29, you will see this line of code:

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


Do you see the number "39" within the line of code? This is how many words WordPress will display from your post before tapering off and adding "...". You can change this number to whatever you prefer. 

Please be sure to save changes to the document when finished.