I'm completely lost, and I have been trying to solve this for hours and hours so I'm hoping someone can help me.
I'm working on the page here --> http://www.luzparrondo.com and I'm using Thematic.
The thing is that this installation of wordpress uses qTranslate since I have the site in 3 languages.
First of all, in my functions.php file in the template I did some modifications to create a new main menu that allows me to include only some of the pages.. see code
// Remove original Theme Menu
function remove_menu() {
remove_action('thematic_header','thematic_access',9);
}
add_action('init', 'remove_menu');
// Create a new Top Menu
function top_access() { ?>
<div id="access">
<div class="skip-link">
<a href="#content" title="<?php _e('Skip navigation to the content', 'thematic'); ?>">
<?php _e('Skip to content', 'thematic'); ?>
</a>
</div>
<?php wp_page_menu('sort_column=menu_order&include=2,4,6,9,17,30') ?>
<div class="language-wrapper">
<div class="language-style">
<?php qtrans_generateLanguageSelectCode('text'); ?>
</div>
</div>
</div><!-- #access -->
<?php
}
add_action('thematic_header','top_access',9);
Below the wp_page_menu I'm adding this code as seen above
<div class="language-wrapper">
<div class="language-style"><?php qtrans_generateLanguageSelectCode('text'); ?></div>
</div>
This is to display the language selection links in the main menu as well but with different styles.
The styles I add for this to the default.css are the following
.language-wrapper { /* Wrapper for languages in main menu */
float: left;
display: inline;
margin-left: 94px;
}
.language-style, .language-style ul li{ /* Styles for language choose in main menu */
float:left;
font-family: Arial, Helvetica;
font-size: 15px;
display: inline;
list-style-image: none;
padding-right: 12px;
list-style-type: none;
padding-top: 2px;
}
.language-style a, .language-style a:visited{
color: #fff;
text-decoration: none;
}
.language-style a:hover {
color: #000;
}
#qtranslate-chooser li.active {
text-indent: -100000px; /* Hides the active language */
}
This works perfectly in Safari and Firefox, but for some reason IE7 always pushes everything I put in after the <?php wp_page_menu('sort_column=menu_order&include=2,4,6,9,17,30') ?> down to the next line. So in IE7 the menu isn't visible because it moves down to the main content which has white background and therefore disappears.
If there is someone that could help me find a solution I would be eternally thankful.
Best regards,
Fannar