- This topic has 3 replies, 2 voices, and was last updated 7 years, 11 months ago by Mahesh.
-
AuthorPosts
-
May 23, 2016 at 1:33 pm #92193AlexanderParticipant
Hi,
I´m already done with a new Webpage. It all worked fine. But unfortunately I have one issue that I cannot solve.
I use Polylang to have a german (default) an english version of the Website.
Int the header Section I included the language selector plus an additional graphic (a house) linked to home. Extract of the code in header.php:<body <?php body_class(); ?>> <?php // outputs a flags list with languages names ?> <div id="meta-navigation"><div id="language"> <?php pll_the_languages(array('show_flags'=>1,'show_names'=>0,'hide_current'=>1)); ?> </div></div> <?php /** * chicago_before_header hook
My question: the Home-page of the german Site is the domain itself (http://develop.ksmpatent.de/). The Home-page of the english version is http://develop.ksmpatent.de/en/home/
–> how can I achieve to link on the specific Home-page for each language?Thank you very much for your support in advance!
Kind regards
AlexMay 23, 2016 at 2:35 pm #92195MaheshKeymaster@9punkt2:
Hi Alex,I tried to check you website but an authentication box popped up. Polylang plugin allows you to specify different menus for different language. I guess you’ll need that. And as for the link in the site title, it’ll link you to the homepage with current active language.
Let me know further.Regards,
MaheshMay 24, 2016 at 1:39 pm #92234AlexanderParticipantHi Mahesh,
thank you very much for your reply.
The site is under development. Therefore it is password protected:
> develop
> NC#;cU1JOxV#Actually the menus work fine.
But I added an language selection graphic and a home graphic (house) in den Header.
Please see the section I mentioned in my first request (header.php).
The language selector works. But I don not know how to link the home graphic to the active language. Hope you can help 🙂Kind regards
AlexMay 24, 2016 at 1:56 pm #92235 -
AuthorPosts
- The topic ‘Header and Polylang (two languages)’ is closed to new replies.