Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

Kangarooo on "[Plugin: Polylang] Own menu"

$
0
0

Searched, googled and couldnt find in any articles what im looking for.

So in PHP Header putting <?php pll_the_languages() ?> gives me all 3 languages.
How to make to show only 1 language? for example if English is locale en_US Code is en and order is 3.
I want to put language choosing code in different places with hover.
So i can use it with this:

<a href="./en/about/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('eng','','<?php bloginfo('template_directory'); ?>/images/top3_2_en_over.jpg',1)"><img src="<?php bloginfo('template_directory'); ?>/images/top3_2_en.jpg" alt="English" name="eng" width="50" height="39" border="0"></a>

AND

How to make from cureent chosen language this menu link to go to specific page id ?
<a href="./{$lang_parent}/contacts/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('kontakti','','<?php bloginfo('template_directory'); ?>/images/m5_kontakti_lv_LV_over.jpg',1)"><img src="<?php bloginfo('template_directory'); ?>/images/m5_kontakti_lv_LV.jpg" alt="Kontakti" name="kontakti" width="194" height="43" border="0"></a>

http://wordpress.org/extend/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles