Sitka v1.3 out now! [Changelog] [How to update]


Auto-apply the Continue Reading button in all posts in Florence

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

The "Continue Reading" button in Florence 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. By default, you will need to manually insert WordPress's Read More tag into your posts in order to have the "Continue Reading" button appear on your homepage posts. To learn how to go about this, check out: How do I get the "Continue reading" link?

Another option is to have WordPress 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 published posts 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.

Florence Read More Screenshot #1

Auto-apply "Continue Reading" button to all Standard Posts

To have the "Continue Reading" button auto-apply to all legacy & future posts (standard post format), we will make a slight adjustment to your theme's file(s).

Navigate to WP Dashboard > Appearance > Theme Editor and open up the file titled "content.php". 

On Line 71, you'll see the code for the "Continue Reading" button. It looks like this:

<?php the_content(); ?>

Replace that line of code with the following code instead:

<?php if(is_single()) : ?>
    <?php the_content(__('<span class="more-button">Continue Reading</span>', 'solopine')); ?>
<?php else : ?>
    <p><?php the_excerpt(); ?></p>
    <p><a href="<?php echo get_permalink(); ?>" class="more-link"><span class="more-button">Continue Reading</span></a></p>
<?php endif; ?>

Be sure to save the changes to your theme file when you're finished.

Changing the post summary length  


To set the number of words that will display from your post before the "Continue Reading" button appears, you can follow these steps: 

Navigate to WP Dashboard > Appearance > Theme Editor > and open up the file titled "functions.php". 
Please be very careful what you delete or add in this file! It is very sensitive. 

Scroll to the bottom of the file.
Beginning on Line 259, you'll see the section titled "THE EXCERPT".
Within this section, there is a line that looks like:

return 200;

The "200" number value determines the number of words in your post that will display on the homepage before the Read More tag kicks in. You can change this number value to whatever you prefer.

Be sure to save any changes to this file when you're finished.


To adjust the number of words that appear in your post summary with Grid Layout, you can navigate to WP Dashboard > Appearance > Theme Editor > and open up the file titled "content-grid.php". 

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

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

Do you see the "32" number value? This means that 32 words will appear in the summary before the summary ends. You can change this to whatever number you prefer. 

Save changes to the file when finished.