0

enter image description here

As the image shows, the "Last >>" page button is not well adjusted, so i want to remove one item from this pager but can't figure out where can i find it to edit. I don't think it's configurable in apachsolr? Can anybody help me with this?

  • Is that a View? – Brady Jul 17 '15 at 10:19
  • no its not, its just a search result page. – Rakesh Verma Jul 17 '15 at 10:30
2

This can be done by using theme_pager in TEMPLATE.PHP (add it to your theme folder) . the code will be :

function theme_pager($variables) {
  if(arg(0) == "search" && arg(1) == "site") {
    $variables['quantity'] = 8; 
  }
}
0

If it is a VIEW, then change under Pager. Click on Paged, # items then change Number of pager links visible as per your request.

  • It is a search page, not a view. – Rakesh Verma Jul 17 '15 at 10:30
  • Use theme_search_page($results, $type) and check drupal.org/node/1089656 May be i am not right, but check this once. – Ajay Reddy Jul 17 '15 at 10:38
  • Theming hole search_page is a bit hard , rather pager can be themed more easily – Alireza Tabatabaeian Jul 17 '15 at 10:51

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.