0

For some Taxonomy term pages I would like to change the "Read More"

link to "More info". Using theme developer, I see it’s using the theme_link function and gives a candidate function name.

If I re-write this function, in which PHP file would I put this custom function?

1 Answer 1

1

theme_link() doesn't use a template file. You can override its output by placing your own theme function in your theme's template.php file:

function MYTHEME_link($variables) {
  //Alter this as you see fit
  return '<a href="' . check_plain(url($variables ['path'], $variables ['options'])) . '"' . drupal_attributes($variables ['options']['attributes']) . '>' . ($variables ['options']['html'] ? $variables ['text'] : check_plain($variables ['text'])) . '</a>';
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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