Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #92193
    Alexander
    Participant

    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
    Alex

    #92195
    Mahesh
    Keymaster

    @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,
    Mahesh

    #92234
    Alexander
    Participant

    Hi 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
    Alex

    #92235
    Mahesh
    Keymaster

    @9punkt2:
    Hi Alex,

    Thanks for the credentials. I checked your site. It seems both the language switcher and the home buttons are from the plugin itself (pll_the_languages function). I recommend you to contact Polylang plugin support.

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Header and Polylang (two languages)’ is closed to new replies.