Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Rocco demo. We don`t offer theme customization.

Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.


Language-dependent footer content
  • Hello,

    I have a multi-language website using Rocco with the Polylang plugin and I would like to define a link to a legal notice page in the footer, which would be different from one language to another.

    Polylang works with Wordpress contents (menus, pages, articles) but not with links coded into php files.

    Could you please help me with this ?
  • 2 Comments sorted by
  • Please sign in to see answear!
  • Here's how I enventually handled it:

    <!-- beginning of the code -->
    <?php
    $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
    switch ($lang){
    case 'fr':
    $linkAddress = 'http://www.mysite.org/fr/mentions-legales';
    $linkText = 'Mentions légales';
    break;
    default:
    $linkAddress = 'http://www.mysite.org/en/legal-notices/';
    $linkText = 'Legal notices';
    break;
    }
    ?>
    <a href="<?php echo esc_url($linkAddress); ?>"><?php echo esc_html($linkText); ?></a>
    <!-- end of the code -->

    I've put it in the footer, where I wanted to have my link.