-
AuthorPosts
-
June 24, 2015 at 5:44 pm #464227
Hi Kriesi people,
since the newest updates my wpml customizations, which was possible with your help
(see https://kriesi.at/support/topic/wpml-customization/?login_error#post-351979), doesn’t work like expected meaning
I’m not able to place the language switcher on the same location as it was before the update:Could you provide help please. Seems like there is a kind of “hidden” menu content.
To see what I mean I increased this Quick CSS section.avia_wpml_language_switch li span {
position: relative;
top: 2px;
font-size: 12px;
}to
.avia_wpml_language_switch li span {
position: relative;
top: 10px;
font-size: 12px;
}Please check the link to see what was changed in avia.ja, funtions.php…
Best regards
RobertJune 27, 2015 at 12:43 pm #465228Hi!
Seems only modifying avia.js is left, try re-doing this:
https://kriesi.at/support/topic/wpml-customization/#post-364246Best regards,
JosueJune 29, 2015 at 4:41 pm #465932Hi Josue,
I did that. There is a new entry for the elements in your template which I ignored (deleted).
And it had an effect. But still not working properly.Best
RobertJune 30, 2015 at 4:44 am #466149Hi Robert,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueJuly 1, 2015 at 1:05 pm #466953Sure…
July 2, 2015 at 2:47 am #467313In js/avia.js, change line 1552:
elements = $('#header_main .container:first, #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a), .avia_wpml_language_switch span.language_code'),
To:
elements = $('#header_main .container:first, #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a), .avia_wpml_language_switch a'),
Best regards,
JosueJuly 2, 2015 at 12:17 pm #467434Hi Josue,
I did the change. Unfortunately no effect.
Best
RobertJuly 2, 2015 at 12:17 pm #467436Hi,
Can you please create us a temporary FTP / SFTP account? post it here as a private reply.
Regards,
JosueJuly 2, 2015 at 5:45 pm #467662July 3, 2015 at 5:08 am #467817Hey!
Please post the server URL as well.
Regards,
JosueJuly 3, 2015 at 10:31 pm #468239somehow private content only is not allowed anymore…
July 4, 2015 at 12:36 am #468262Hi!
Check it now, needed to add this to Quick CSS:
.avia_wpml_language_switch { height: auto; }
By the way, i’d suggest you transitioning to a child theme if you this mod to survive updates.
Best regards,
JosueJuly 6, 2015 at 11:51 am #468814Looks perfect now! Thanks Josue!
Not sure about child themes and performance impact. I don’t want any negative impact.
Quick CSS is always well preserved on updates.
The avia.js and functions.php changes are done quickly. So…Best
RobertJuly 6, 2015 at 11:54 am #468818You are welcome, well if that works for you then it’s fine :)
Best regards,
JosueJuly 6, 2015 at 12:05 pm #468823just saw, that on a mobile, the language code is visible now. before it was part of the mobile menu.
July 6, 2015 at 11:00 pm #469290Hey!
Add this to Quick CSS:
@media only screen and (max-width: 767px) { ul.avia_wpml_language_switch { display: none; } }
Regards,
JosueJuly 10, 2015 at 7:24 pm #471689Hi Josue,
thanks for that. Just needed to adjust the px to my mobile settings. Works.
Cheers
RobertJuly 10, 2015 at 10:40 pm #471745You are welcome Robert, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.