I just started layout a new site with a Language switcher in the header.
I placed it in the top right in the header. But I lost the Search form in the header right bottom doing that?
Can anyone tell me what I did wrong
http://keine-werbung-bitte.de/
-edited to remove login info for security reasons - ADMIN
Please look at :
<div class="headertopright">
Here the code of my header.php
PHP Code:
<div id="header">
<?php if(get_theme_mod('header_blog_title') == 'Image') { ?>
<div class="headerleft">
<?php if (is_home()) { ?>
<h1><a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" /></a></h1>
<?php } else { ?>
<h4><a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" /></a></h4>
<?php } ?>
</div>
<?php } else { ?>
<div class="headerleft">
<div class="headertext">
<?php if (is_home()) { ?>
<h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php } else { ?>
<h4><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h4>
<?php } ?>
<p><?php bloginfo('description'); ?></p>
</div>
</div>
<?php } ?>
<div class="headertopright">
<div>
<?php do_action('icl_language_selector'); ?>
</div>
</div>
<div class="headerright">
<form id="searchformheader" method="get" action="<?php echo get_option('home') ?>/">
<input type="text" value="Search this website..." name="s" id="searchbox" onfocus="if (this.value == 'Search this website...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search this website...';}" />
<input type="submit" id="searchbutton" value="GO" /></form>
</div>
</div>
and my style.css
Code:
.headertopright {
width: 200px;
height: 150px;
float: right;
margin: 20px;
padding: 0px 10px 0px 0px;
}