0

I am using the Sideshow theme which I received as part of a bundle hence I don't receive any support from Themezilla themselves. I am trying to insert a "Read more" link when I insert a "More" tag. I have tried following instructions from Wordpress Codex using the_content and the_excerpt but haven't been able to crack it. The site I'm using it on is onespectator.com

From the themes functions.php

/*-----------------------------------------------------------------------------------*/
/*  Change Default Excerpt Length
/*-----------------------------------------------------------------------------------*/

function tz_excerpt_length($length) {
return 55; }
add_filter('excerpt_length', 'tz_excerpt_length');

/*-----------------------------------------------------------------------------------*/
/*  Configure Excerpt String
/*-----------------------------------------------------------------------------------*/

function tz_excerpt_more($excerpt) {
return str_replace('[...]', '...', $excerpt); }
add_filter('wp_trim_excerpt', 'tz_excerpt_more');
2
  • 1
    Please show us some actual code, no one knows what's in a specific theme.
    – Wyck
    Commented Jan 3, 2013 at 3:31
  • Hi Wyck I'm not sure which code to show. I have updated the question with code that I think could affect it but I am not sure. Thanks Commented Jan 3, 2013 at 3:35

1 Answer 1

1

I found the answer, I searched for <?php the_content(''); ?> and changed it to <?php the_content('Read More'); ?> These were found in each post types php file. eg includes/video.php.

1
  • Alternatively you can add a name inside your <!--more--> tag. For instance if you wanted a "Read more" link, you would enter <!--more Read more--> Commented Jan 5, 2013 at 3:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.