Im new, sorry, When I go to word-press update, in word-press, which is pre installed on my website by the host, it tells me Im using Twenty Eleven version 3,4,2
and theme 1.3
I have my own text and picture as header, along with page links in header, but I do not want the search box in the header as Iv found it only works if once you enter the text, you click the ‘enter’ key on your computer keyboard, as clicking on the tiny magnifying glass at the end of the search box does not work..and I think most people will not realise this. so prefer to add a widget for site search.
Any help please? my site http://www.stemcellpatient.net
You are not using the original Twenty Eleven theme. Have you been editing the theme’s template files?
Not sure there, as was set up by some one else who im no longer in contact with.
I think your best option would be to switch to another theme and then rename your modified 2011 theme via its style.css file and change its theme folder name (using FTP or whatever file management application your host provides). Then re-upload a fresh copy of Twenty Eleven via Appearance -> Themes -> Install Themes. Once you activate the unmodified Twenty Eleven theme, you’ll see that its search is quite different.
If you want to change your custom theme, you’ll need to start editing the theme’s template file – presumably header.php – and remove
oh lordy, well over my head im afraid, I went to
Twenty Eleven: Search Form (searchform.php)
* The template for displaying search forms in Twenty Eleven
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
<form method=”get” id=”searchform” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
<label for=”s” class=”assistive-text”><?php _e( ‘Search’, ‘twentyeleven’ ); ?></label>
<input type=”text” class=”field” name=”s” id=”s” placeholder=”<?php esc_attr_e( ‘Search’, ‘twentyeleven’ ); ?>” />
<input type=”submit” class=”submit” name=”submit” id=”searchsubmit” value=”<?php esc_attr_e( ‘Search’, ‘twentyeleven’ ); ?>” />
But not sure what to do with it? just delete it maybe?
No – Leave that alone. Try looking in header.php.
sorry mate I thought I was..I dont know where to locate it..
If you cannot manage this yourself, perhaps you need to consider hiring someone to carry out the work for you.
I would love too, if I could find some one cheap enough and trustworthy
As I need a couple things done, like bing says my sites fine, but google says it cant read my robots.txt Other than that I think if figgered my way around lol
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]
And there are 2 references to
<?php get_search_form(); ?>in there.
Found them, deleted them, but says You need to make this file writable before you can save your changes. See the Codex for more information.
then takes me to a page I really DONT follow, thought I had it sorted thanks to your help and patience but no.. do you hire out ? 🙂
Ask your hosts for assistance in making your theme’s files with wp-content/themes/your_theme_name writeable.
I will, my host is 1 guy in Romania and Iv had so much problems with him I want to try to relocate whole thing to a UK pro server, so trying to fix it up first, but thinking now just move it, then try fixing it..thank you so much for your time and help though. 🙂
- The topic ‘Need to remove 'Search' from header in 2011’ is closed to new replies.