-
AuthorPosts
-
September 9, 2014 at 5:09 pm #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
ThanksSeptember 9, 2014 at 5:12 pm #315989Hi 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!
PeterSeptember 9, 2014 at 5:17 pm #315995I will try it. Thanks Dude.
September 9, 2014 at 5:34 pm #316006No. Doesn’t work, please send the question to Yigit. Greetings.
September 10, 2014 at 5:48 am #316286Hey!
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!
IsmaelSeptember 10, 2014 at 6:59 am #316320Neither Ismael, sorry,
September 10, 2014 at 8:08 am #316352Hi!
Please post the login details here and set it as a private reply. Yigit will be checking it later today or tomorrow.
Cheers!
IsmaelSeptember 10, 2014 at 8:36 am #316369This reply has been marked as private.September 10, 2014 at 2:26 pm #316588Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.GTranslate { top: 30px; position: relative; }
Cheers!
YigitSeptember 10, 2014 at 3:14 pm #316644YES!!!! 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.
September 10, 2014 at 6:27 pm #316829Hey!
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!
YigitSeptember 10, 2014 at 7:01 pm #316855That’s great news!! Thanks Yigit
September 10, 2014 at 7:54 pm #316874 -
AuthorPosts
- The topic ‘gTranslate into the header’ is closed to new replies.