Problem with search form
-
Hello guys, on the base of twentytwelve I am developing my site. I made searchform.php
<form action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” id=”searchform” method=”get”>
<input type=”text” name=”s” id=”s” placeholder=”<?php _e(‘Търсене…’,’twentytwelve’) ?>” />
</form>and put this in header.php, off course in childtheme:
<header id=”masthead” class=”site-header” role=”banner”>
<hgroup>
<h1 class=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
</hgroup>
<div class=”header-search”><?php get_search_form(); ?></div>
<nav id=”site-navigation” class=”main-navigation” role=”navigation”>
<h3 class=”menu-toggle”><?php _e( ‘Menu’, ‘twentytwelve’ ); ?></h3>
“><?php _e( ‘Skip to content’, ‘twentytwelve’ ); ?>
<?php wp_nav_menu( array( ‘theme_location’ => ‘main navigation’, ‘menu_class’ => ‘nav-menu’ ) ); ?>
</nav><!– #site-navigation –>
<?php do_action(‘slideshow_deploy’, ’48’); ?>
</header><!– #masthead –>
I am trying to put search in the right side in the main navigation, but do not know how. Please help.
The topic ‘Problem with search form’ is closed to new replies.