0

When customizing a drupal 7 theme about a year ago I removed the code that displays the read-more link at the end of teasers.

I need to add this code back to show the read-more links now, but I have totally forgotten where to put this code in.

Any help?

Thanks

1 Answers1

0

Look for a file in your template with suffix *-teaser.tpl.php and in proper location add like this example or another example of marinellie theme

    <span class="teaser-readmore"><?php print l(t('read more'), 'node/' . $nid, array('attributes' => array('class' => t('node-readmore-link')))); ?></span>

Another solution is look for how was it implemented it your main theme ( looking for *--teaser.tpl.php and just copy/paste read_more section)

Yuseferi
  • 7,931
  • 11
  • 67
  • 103
  • Thank you, I remember deleting similar code from some template file in my drupal 7 theme. However, I just installed https://www.drupal.org/project/read_more module and then run the cron to make it effective. This module is working for me nicely as it allows to modify the "read me" text to whatever language, my site is in Urdu language (right to left like Arabic), – head_scratcher Nov 21 '17 at 15:06