April 14, 201016 yr Hello I have just integrated wordpress blog into an existing website of mine and I want to get rid of 'Search for' next to search box. I can see the html when I view page source, but don't know where to find it in wordpress files - any ideas? Also the pages go tits up when I click on any of the links in the sidebar, it looks as though they aren't linked to style sheet, any ideas on that too would be appreciated. Much thanks in advance. the blog is at www.marble-design.co.uk/blog if that helps
April 14, 201016 yr Take a look at this page http://codex.wordpress.org/Function_Reference/get_search_form Short of hand coding the form and putting it in your template instead of <?php get_search_form(); ?> I don't know if there's another way to do this. I have no idea what file generates the html output for that function. As for your pages going wrong, have you looked at the page.php file in your theme folder?
April 14, 201016 yr I have just integrated wordpress blog into an existing website of mine and I want to get rid of 'Search for' next to search box. I can see the html when I view page source, but don't know where to find it in wordpress files - any ideas? That's theme dependent, though I this in my header you can see here - http://superpositionkitty.com/ <form method="get" id="searchform" action="http://yoursite.com/"> <input type="text" name="s" size="40" id="input-search" value="SEARCH" /> </form> You'll have to find where your other search bar is in your theme and remove it.
April 14, 201016 yr The code is in sidebar.php as <?php get_search_form(); ?> Remove that and replace with <form method="get" id="searchform" action="http://marble-design.co.uk/blog/" > <div><label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form> Remember to put in between the <li> and </li> at the top
April 14, 201016 yr Author Thanks for the replies, I play around with sidebar theme later. No joy on the strange pages, see new post!
Create an account or sign in to comment