/ Published in: PHP

Allows to customize the search results page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /** * Theme override for search results. * * Replace themename with your theme's name. */ function themename_search_item($item, $type) { $output = ' <dt class="title"><a href="'. check_url($item['link']) .'">'. check_plain($item['title']) .'</a></dt>'; $output .= ' <dd>'. ($item['snippet'] ? '<p>'. $item['snippet'] .'</p>' : ''); return $output; } ?>
Comments
