MEET SITKA | A super-customizable modern WP theme!

Okay
  Print

Add "Read More" link to Grid Layout and List Layout posts in Rosemary

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


By default, the "Continue Reading" button won't appear for Grid Layout and List Layout posts. If you would like to have this button appear below each grid and/or list item, you can follow these steps:



GRID LAYOUT


Navigate to WP Dashboard > Appearance > 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(), 34); ?>…</p>


Directly BELOW this line of code, on blank Line 27, copy & paste the following:

<p><a href="<?php echo get_permalink() ?>" class="more-link"><span class="more-button"><?php _e( 'Continue Reading', 'solopine' ); ?></span></a></p>


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



LIST LAYOUT


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

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

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


Directly BELOW this line of code, on blank Line 28 copy & paste the following:

<p><a href="<?php echo get_permalink() ?>" class="more-link"><span class="more-button"><?php _e( 'Continue Reading', 'solopine' ); ?></span></a></p>


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