Change View title with taxonomy term
If you want to set a custom title of a view page, when the view is to display the content with respect to taxonomy terms from URL, add the following in your template.php
function template_preprocess_page(&$variables) {
$current_path = drupal_get_path_alias();
if($current_path == 'taxonomy/term') {
drupal_set_title('YOUR_CUSTOM_TITLE');
}
}
Written by Dhinesh
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Drupal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#