Dear Kriesi team,
i use enfold for a long time for many of my customers and first off all have to make a compliment, great theme.
However one of my customers uses google translate and i want to prevent the secondary menu (small bar above the menu) from translating with googles solutopn to wrap it with the tag “notranslate” (<span class=”notranslate”> content that is not translated</span>)
I found a solution and added the class “notranslate” to helper-main-menu.php in the folder enfold/includes at line 21
<div id='header_meta' class='container_wrap container_wrap_meta notranslate> <?php echo avia_header_class_string(array('header_social', 'header_secondary_menu', 'header_phone_active'), 'av_'); ?>'>
It works perfectly, but is there a update-friendly way to do this?
Best Regards,
Bastian Gasteiger
Hey basti2409,
If you add the modified file to your child theme, it will be update proof.
Best regards,
Jordan Shannon
Hi Jordan,
Happy new year, i’m sorry to bring this old thread up, but is there any possibility to use the notranslate class for specific main menu items?
Best regards,
Bastían Gasteiger
//edit: solved, i added the class in the design–>menu in the backend
Hi Bastían Gasteiger,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria