Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #33472

    Vaidotas P
    Participant

    Hi,

    First I would like to thank for a great theme. I love it very much…Thanks for all your team!

    I’m using integrity light theme. After I checked forum, I couldn’t find anything regarding Google Language Translator plugin. Could you please show me (give instructions:), how to make flag icons of Google Language Translator plugin to appear in the Topbar or in the header Menu area (right or left side of it – and I also need help adjusting flag’s positioning up, left, right and down). This plugin works perfect with header widget, but I don’t want to use widgets for this.

    Thanks in advance for Your help.

    Vaidyz

    #33794

    Support
    Member

    Hi there!

    Thank you for using the theme!

    You can insert the google language translator code on framework > views > global > _navbar.php. If you don’t mind, please post a screenshot on where exactly you want the plugin to show on the header. Also, include the code on your reply. We’ll be happy to assist you once we have a better understanding of what it is you’re trying to accomplish.

    Cheers!

    #34590

    Vaidotas P
    Participant

    Hi,

    Thank you so much for your reply … Now, I did everything what I wanted 🙂

    Have a good week-end,
    Vaidotas

    #34671

    Support
    Member

    Glad we could help. If you have any questions, let us know.

    #36792

    Antonela D
    Participant

    Hi, I’m using the mqTranslate plugin and i want to put the flags on the header, how can I do it?
    Thanks.

    #36974

    Rad
    Moderator

    Hi Antonela,

    You can follow these steps, though can’t support you more than these.

    1. Duplicate your /x/framework/views/global/_topbar.php into your child theme (eg. /x-child-{YOUR STACK}/framework/views/global/_topbar.php )
    2. Edit your new _topbar.php and find this code :

    <?php if ( get_theme_mod( 'x_topbar_content' ) != '' ) : ?>
    <p class="p-info"><?php echo get_theme_mod( 'x_topbar_content' ); ?></p>
    <?php endif; ?>

    then replace it with :

    <p class="p-info">
    <?php if ( get_theme_mod( 'x_topbar_content' ) != '' ) echo get_theme_mod( 'x_topbar_content' ); ?>
    <?php echo qtrans_generateLanguageSelectCode('both'); ?>
    </p>

    3. Save and upload.

    Hope this helps.