wordpress de fark ettiğim arama kutusunun kenarlığının olmadığı ve adının değiştirilemediğidir. Bunu düzenlemek için yapılacak sadece bir kaç editleme var.
wp-inludes/widgets.php dosyasını açalım;
Bu kodu bulun;
extract($args);
$searchform_template = get_template_directory() . '/searchform.php';
echo $before_widget;
// Use current theme search form if it exists
if ( file_exists($searchform_template) ) {
include_once($searchform_template);
} else { ?>
echo $after_widget;
}
Bununla deÄŸiÅŸtirin:
extract($args);
$searchform_template = get_template_directory() . '/searchform.php';
$options = get_option('widget_search');
$title = apply_filters('widget_title', $options['title']);
if ( empty($title) )
$title = 'Â ';
echo $before_widget . $before_title . $title . $after_title;
echo '
<div>';
// Use current theme search form if it exists
if ( file_exists($searchform_template) ) {
include_once($searchform_template);
} else { ?>
echo '</div>
';
echo $after_widget;
}
function wp_widget_search_control() {
$options = $newoptions = get_option('widget_search');
if ( $_POST["search-submit"] ) {
$newoptions['title'] = strip_tags(stripslashes($_POST["search-title"]));
}
if ( $options != $newoptions ) {
$options = $newoptions;
update_option('widget_search', $options);
}
$title = attribute_escape($options['title']);
?>
}
Bu kodu bulun:
Altına bunu ekleyin :
Hepsi bu kadar, şimdi nasıl göründüğüne bakalım.


