1

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 1

0

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

How do I customize the search result page?

3
  • 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.
    – Viraj
    Commented Sep 21, 2015 at 4:35
  • @Viraj_T your welcome I thought you need it for pager of views or your custom table :)
    – Yuseferi
    Commented Sep 21, 2015 at 5:32
  • Ya. right zhilevan.
    – Viraj
    Commented Sep 21, 2015 at 5:46

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.