Changing "Read The Post"
-
Hi Ben,
What would be the proper way to change the “Read The Post” to say something else or be a button image?
I’ve already got a blank child theme with some minor mods from the other threads here.
Initially I tried creating a blank functions.php in the child theme with the following code:
<?php // filter the link on excerpts function ct_tracks_excerpt_read_more_link($output) { global $post; return $output . "<p><a class='more-link' href='". get_permalink() ."'>" . __('[Read More]', 'tracks') . "<span class='screen-reader-text'>" . get_the_title() . "</span></a></p>"; } ?>
I’m getting a re-declare error.
I can get it to work properly by editing the functions.php of the parent theme to my liking but I don’t want to end up losing changes when upgrading the theme.
Edit:
Link to site – https://mikeymalone.com/Currently I edited the Tracks parent theme functions.php to achieve it, just know that it’s going to get lost down the road at theme upgrade.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Changing "Read The Post"’ is closed to new replies.