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

dimethil on "[Plugin: Polylang] Menus not traduced on my theme"

$
0
0

Dear All,
I'm using last version of WP & last version of polylang.
My website was done in french. I'm now using polylang to create an english version.

I traduced a few pages, and added the language swicher widget below my navigation menu.

The problem is that when the used clicks on the "english flag", it opens the english version of the current page (if it exists), but the navigation menu is still in french...

I disabled all other plugins, no change.
I tryed with an other theme (twenty fourteen), and the problem was solved... SO the problem comes from my theme : Bello ( http://wegraphics.net/blog/articles/a-closer-look-at-bello-a-free-wordpress-theme-from-wegraphics/ )

I opened the Header.php file, and the nav menu is called with this line :
<?php wp_nav_menu( array('depth' => 3 ) ); ?>
I tried to change this line to :
<?php wp_nav_menu( array('theme_location' => 'primary', 'depth' => 3 ) ); ?>
... and the menus are now traduced correctlu, but all submenus are displayed together, by alphabetical order...
Same issue when I replace the line by :
<?php wp_nav_menu( array('theme_location' => 'primary' ) ); ?>

I'm a dummy with WP codes, so, can someone help me to find the good line to paste in my theme ?
Thx

note :

your permalinks settings : by default (http://www.url.com/?p=123)
if you are using a static front page : YES
your Polylang settings : ...

http://www.lautrefabrique.com

https://wordpress.org/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>