Search box function not working
-
I was trying to modify the search box position on the main page of twenty eleven and I mistakenly took out some code – now the search feature does not work.
I need the original code for this section – below is what I have, but I must have made an error when I tried to rebuild it:
`* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/get_header(); ?>
<section id=”primary”>
<div id=”content” role=”main”><?php if ( have_posts() ) : ?>
<header class=”page-header”><h1 class=”page-title”><?php printf( _( ‘Search Results for: %s’,
‘twentyeleven’ ), ‘span> . get_search_query() . ‘<span>’ ); ?> </h1>
</header><?php twentyeleven_content_nav( ‘nav-above’ ); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>`
The topic ‘Search box function not working’ is closed to new replies.
