How to change search result's pager to mini pager. I want to change default pager to mini pager in that search result page. Please help me. Thank you.
1 Answer
you can override template_preprocess_search_results in your template.php
and
instead
$variables['pager'] = theme('pager', array('tags' => NULL));
use
$variables['pager'] = theme('views_mini_pager',array('tags' => NULL));
( just make sure you installed views module)
also this question can get you some clue
-
It won't work in my case. The above code would apply when we need it on form. I have search box in all the page. I have resolved this with mytheme_form_alter() function. Thank you zhilevan.– VirajCommented Sep 21, 2015 at 4:35
-
@Viraj_T your welcome I thought you need it for pager of views or your custom table :)– YuseferiCommented Sep 21, 2015 at 5:32
-