Re-upload a fresh, unpacked, copy of the Twenty Eleven folder to wp-content/themes using FTP or whatever file management application your host provides.
http://wordpress.org/extend/themes/twentyeleven
No! Do not edit the Twenty Eleven theme. First create a child theme for your changes.
Hi esmi,
I have created the following /home/modelg5/public_html/m/wp-content/themes/Twenty Eleven Child/style.css
file and the search box is still showing. The tewntyeleve and Twenty Eleven Chile are in the public_html/m/wp-content/themes directory.
Can you tell me what else is needed in the file?
/*
Theme Name: Twenty Eleven Child
Description: Child theme for the Twenty Eleven theme
Author: Zena
Template: twentyeleven
*/
@import url("/home/modelg5/public_html/m/wp-content/themes/Twenty Eleven Child/style.css");
.site-title a {
color: #0066cc;
}
<div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
<!-- <?php get_search_form(); ?> -->
</div>
<?php
else :
?>
<!-- <?php get_search_form(); ?> -->
</div>
thanks,
Zena
Why do you have PHP code inside your style.css file?
<div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
<!-- <?php get_search_form(); ?> -->
</div>
<?php
else :
?>
<!-- <?php get_search_form(); ?> -->
</div>
belongs in a .php file inside your child theme.
I am a novice with no training in .css or .php I have read How to create a child theme and still have not figured out how to eliminate the search box. Can you tell me what I have to do?
thanks,
Zena
Start by removing that code from your CSS file. Then create a copy of header.php in your child theme, edit it and replace:
<?php
// Has the text been hidden?
if ( 'blank' == get_header_textcolor() ) :
?>
<div class="only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>">
<?php get_search_form(); ?>
</div>
<?php
else :
?>
<?php get_search_form(); ?>
<?php endif; ?>
with:
<?php
// Has the text been hidden?
if ( 'blank' == get_header_textcolor() ) :
endif; ?>
`
I made those changes and the search box still shows. Should I try something else?
thanks.
Zena
Also the theme is not the same as the TwentyEleven when I do a live preview of the child theme. Any ideas?
thanks
Zena