ThemeShaper Forums » Thematic

[closed]

add qtranslate language selector to the right of access

(3 posts)
  • Started 3 years ago by louisJ
  • Latest reply from louisJ
  • This topic is resolved
  1. louisJ
    Member

    Hi

    I am trying to use the extension qtranlate with thematic.
    How can I add the language selector
    <?php echo qtrans_generateLanguageSelectCode('both'); ?>
    at the end of my access (on the same line on the right), given that my access is priority 0?

    Thanks
    Here is what I tried for now:

    //Display Thematic menu above header
    // remove current menu
    function remove_access() {
    remove_action('thematic_header', 'thematic_access', 9);
    }
    add_action('init', 'remove_access');
    // add menu to its new position
    add_action('thematic_header', 'thematic_access', 0);

    //add language flags to access
    function childtheme_access() {
    echo qtrans_generateLanguageSelectCode('image');
    }
    add_filter('thematic_access', 'childtheme_access');

    Posted 3 years ago #
  2. i'd probably drop the childtheme_access() function you have and instead copy thematic_access into my child theme, rename it childtheme_override_access() and tack on the qtranslate bit at the end of the function.

    Posted 3 years ago #
  3. louisJ
    Member

    it works indeed,
    as usual you're the boss Helga,
    thanks

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.