New Landing How can we help? Themeforest Theme Support Dante php code in top bar

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Dante
  • #46801
    opos
    Member

    I’d like to use qTranslate plugin on my website.
    To use languages switcher I got piece of code as below.

    <?php echo qtrans_generateLanguageSelectCode('image'); ?>

    I’d like to put it into top bar. How can I do this.
    I’m thinking about “sf-header.php” file.
    How to do this correctly?

    #47578
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi,
    I am afraid we can not give you an exact line on where to place it since i dont have qtranslate on my local install.

    Yes you are right you have to place it into sf-header.php . Also please see the Developer Documentation for more info .

    Best would be to experiment on the placement so that you can achieve the layout you need.

    Also you can provide your url and wp-admin pass in a private post so i may take a look.

    Best,
    Tahir

    PS: You can set the post to private using the Check box(Set as private reply) on the right bottom of the text area .

    #48337
    vincentpetre
    Member
    Post count: 3

    Hi Tahir,

    I face the same difficulties implementing QTranslate in my Dante Theme header.
    I would have loved to put QTranslate flags only, on the right to the search box. Can you recommend me something ?

    It looks very weird by now : http://screencast.com/t/kDgLZliHGvVx (screenshot)

    Thanks
    Vincent

    #49548
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi Vincent,

    From the screenshot it seems like a css issue. I am sure Ed can investigate into integrating Qtranslate functionality in the coming updates.

    Best,
    Tahir

    #49740
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hey guys,

    If you’d like them to appear to the right of search, you could try adding this above line 413:

    $menu_with_search_output .= '</ul>'. "\n";

    So it should be:

    $menu_with_search_output .= '<li>'.qtrans_generateLanguageSelectCode('image').'</li>'. "\n";
    $menu_with_search_output .= '</ul>'. "\n";

    You would need to add CSS still, but that should get it beside the search.

    – Ed

    #50205
    vincentpetre
    Member
    Post count: 3
    This reply has been marked as private.
    #50261
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    You would need to add that above /includes/sf-header.php line 413.

    Hope that helps.

    – Ed

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register