Hi
Is it possible to replicate the footer language switcher menu so it appears at the very top of the page as well?
Toby
Purchase a commercial support subscription and get direct help from WPML's developers.
Hi
Is it possible to replicate the footer language switcher menu so it appears at the very top of the page as well?
Toby
i am looking for the same as my template does not have block.. any help soon will be welcome :)
Hey,
Check this following article out:
How to Replicate the Footer Language Switcher Menu In Order to Display It Also at The Very Top of Site by Using WPML Plugin of WordPress
Hopefully this will be helpful for you.
Perfect! Works just how I wanted it to! Thank you ever so much
You're welcome.
it seems i am not doing it right...
using latest wordpress version and artisteer generated template
i edited the functions.php as instructed, then in header.php i added
<link rel="stylesheet" href="<?php echo WP_PLUGIN_URL; ?>/sitepress-multilingual-cms/res/css/language-selector.css" type="text/css" media="all" />
<?php languages_list_footer(); ?>
before:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
I can see the languages at the top now but they are unclickable :)
The lang bar also appears at the bottom and i actually turned it off but is still there :)
is there a way to put the switcher in the menu
any furher assistance is appreciated
my functions.php
http://mypcstats.hit.bg/functions.php
my header.php
http://mypcstats.hit.bg/header.php
You should put the instructed code *after* this line of code:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
so the final results will become:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo WP_PLUGIN_URL; ?>/sitepress-multilingual-cms/res/css/language-selector.css" type="text/css" media="all" />
<?php languages_list_footer(); ?>
is there a way to put the switcher in the menu
I don't think this feature has been supported in WPML.
well i did everything but the menu is still unclickable :|
It appears that you are using a theme that overrides the language selector area at the very top of your site.
I see when your site is still not yet fully performed, the language selector area can be clicked properly. But once the site appears in full, the language selector area overwritten by the theme of your site that use flash.
My recommendation is try to put the language selector at the bottom of your site.
http://www.openscriptsolution.com/2010/06/25/how-to-add-custom-language-switcher-using-wpml-plugin-of-wordpress/
@greenwizrd
you have your art-page-background-glare positioned as absolute which is getting on top of the language switcher. The reason you don't see it is because it has a transparent background. Delete top:0px; from the CSS of art-page-background-glare and it should move down below the language switcher. If you want it positioned at the very top then you need to give your language switcher a z-index that would put it over the art-page-background-glare.
thanks i should have figured at least that one by myself :))
i`ll probably try and make a new theme cuz i need tha langs on top...
i am looking at the topic with the different jpg header logos for each language which is closed now but I still can`t figiure out how to use the solutions provided ;|
sinaga could u help me again ?
@greenwizard,
Okay, that topic has been just re-opened again.
ok i got the menu working in header.. thanks hamedhemmati and thanks sinaga
hm there is one problem , after inserting the lang bar on top and when i click on the last lanugage then the menu get misplaced . see screenshots
http://i583.photobucket.com/albums/ss277/sonoftruth/2nd.jpg
http://i583.photobucket.com/albums/ss277/sonoftruth/3rd.jpg
i tried tried changes in the functions code at echo icl_disp_language and in css of the selector but can`t fix it...
there seems to be something wrong with your navigation menu unrelated to the language selector. Your navigation menu looks fine on IE but it goes down on Firefox/Safari and on Chrome it doesn't even work as a navigation menu. It shows it as a list of links. All of these are happening only on the French pages. If this is custom menu you built may be something is missing in the French menu loop.
You must log in to post.