Support » Plugin: WP-TopBar » [Plugin: WP-TopBar] WP-Topbar 4.0: no longer supports qtranslate

  • Resolved mailbeez


    As of the latest release multilingual top-bars are no longer supported

    before with

    different text could be defined.

    Also the alternative syntax does not work:

    In the previous version it worked fined.

    Would be great if you put the support for qtranslate back into wp-topbar

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bob


    That is odd — there was no change to how the HTML was created.

    I looked up qtranslate and found how to add explicit support for their plugin. I tested it on one of my sites.

    This feature will come out in the next release of my plugin.

    To patch version 4.00, edit wp-topbar.php.

    Look for the function wptb_display_TopBar. Add the following code:

    if(function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
    			$wptbOptions['bar_text'] = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($wptbOptions['bar_text']);
    			$wptbOptions['bar_link_text'] = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($wptbOptions['bar_link_text']);
    			$wptbOptions['bar_link'] = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($wptbOptions['bar_link']);

    Before this line of code:

    echo '<p id="wptbheadline" style="',$wptb_visibility;

    This should be around line 197.

    Let me know if this works for you.


    hi bob,

    thanks a lot for fixing the issue! it works again with your patch!


    Plugin Author Bob



Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-TopBar] WP-Topbar 4.0: no longer supports qtranslate’ is closed to new replies.