StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-15-2010, 05:45 AM
lindebjerg's Avatar
lindebjerg lindebjerg is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Jan 2009
Location: Germany
Posts: 526
Default Language Switcher in Header

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;
    }
 

Tags
header

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date on header in localized language algiu General Discussion 1 05-13-2010 01:41 PM
Language flags in header.php musikalg General Discussion 2 01-22-2010 04:22 AM
Image Switcher for home page manomalt General Discussion 1 03-30-2009 10:25 AM


All times are GMT -5. The time now is 01:05 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.