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;
PHP:
Bununla deÄŸiÅŸtirin:
PHP:
-
function wp_widget_search($args) {
-
$searchform_template = get_template_directory() . '/searchform.php';
-
$options = get_option('widget_search');
-
$title = apply_filters('widget_title', $options['title']);
-
$title = 'Â ';
-
echo '
-
<div>';
-
-
// Use current theme search form if it exists
-
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"] ) {
-
}
-
if ( $options != $newoptions ) {
-
$options = $newoptions;
-
update_option('widget_search', $options);
-
}
-
$title = attribute_escape($options['title']);
-
?>
-
-
}
Bu kodu bulun:
PHP:
-
wp_register_sidebar_widget('search', __('Search'), 'wp_widget_search', $widget_ops);
Altına bunu ekleyin :
PHP:
-
wp_register_widget_control('search', __('Search'), 'wp_widget_search_control' );
Hepsi bu kadar, şimdi nasıl göründüğüne bakalım.


