Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #315984

    Sorry for bother you again, but I’ve just updated from 2.4.2 to 2.9.2 and the new header file had changed a lot, I wish to know where to put the line: ?><div class=”GTranslate”><?php echo do_shortcode(‘[gtranslate]’); ?></div> to get again the gtranslate in the right top of the header.
    This is the first topic:
    https://kriesi.at/support/topic/gtranslate-into-the-header-displayed-at-the-top-right/
    and this is how I want to get back: http://postimg.org/image/t8gts6z7d/
    The web page is: http://www.rvarq.com
    Thanks

    #315989

    Hi nicolasweh!

    I’ll mark this thread for Yigit because he helped you the last time and I’m not sure what he did. Basically you need to modify the wp-content/themes/enfold/includes/helper-main-menu.php file and probably replace this code:

    
    						//phone/info text	
    						$phone			= $headerS['header_phone_active'] != "" ? $headerS['phone'] : "";
    						$phone_class 	= !empty($nav) ? "with_nav" : "";
    						if($phone) 		{ echo "<div class='phone-info {$phone_class}'><span>{$phone}</span></div>"; }
    							
    							
    			        ?>
    			      </div>
    

    with

    
    						//phone/info text	
    						$phone			= $headerS['header_phone_active'] != "" ? $headerS['phone'] : "";
    						$phone_class 	= !empty($nav) ? "with_nav" : "";
    						if($phone) 		{ echo "<div class='phone-info {$phone_class}'><span>{$phone}</span></div>"; }
    							
    							
    			        ?>
    			     <div class='GTranslate'><?php echo do_shortcode('[gtranslate]'); ?></div>
    			      </div>
    

    Cheers!
    Peter

    #315995

    I will try it. Thanks Dude.

    #316006

    No. Doesn’t work, please send the question to Yigit. Greetings.

    #316286

    Hey!

    Please add this at the very bottom of functions.php:

    function add_gtranslate_script(){
    ?>
    <div class='GTranslate'><?php echo do_shortcode('[gtranslate]'); ?></div>
    <?php
    }
    add_action('avia_meta_header', 'add_gtranslate_script');

    I’ll ask Yigit to take a look if that doesn’t work.

    Cheers!
    Ismael

    #316320

    Neither Ismael, sorry,

    #316352

    Hi!

    Please post the login details here and set it as a private reply. Yigit will be checking it later today or tomorrow.

    Cheers!
    Ismael

    #316369
    This reply has been marked as private.
    #316588

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .GTranslate {
    top: 30px;
    position: relative;
    }

    Cheers!
    Yigit

    #316644

    YES!!!! You are the man Yigit, many many thanks :)
    Does it mean that from now on I’ll could update without loosing that plugin?
    I guess you have changed some files in the enfold folder, isn’t it?

    • This reply was modified 10 years, 3 months ago by nicolasweh.
    #316829

    Hey!

    No actually, i did not change anything. Code was already in helper-main-menu.php file but it was not visible because of its position.
    To avoid losing the changes, please copy&paste helper-main-menu.php file to your child theme inside “includes” folder and refer to – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Cheers!
    Yigit

    #316855

    That’s great news!! Thanks Yigit

    #316874

    Hey!

    You are welcome, let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘gTranslate into the header’ is closed to new replies.