Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #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
    Robert

    #465228

    Hi!

    Seems only modifying avia.js is left, try re-doing this:
    https://kriesi.at/support/topic/wpml-customization/#post-364246

    Best regards,
    Josue

    #465932

    Hi 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
    Robert

    #466149

    Hi Robert,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #466953

    Sure…

    #467313

    In 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,
    Josue

    #467434

    Hi Josue,

    I did the change. Unfortunately no effect.

    Best
    Robert

    #467436

    Hi,

    Can you please create us a temporary FTP / SFTP account? post it here as a private reply.

    Regards,
    Josue

    #467662
    #467817

    Hey!

    Please post the server URL as well.

    Regards,
    Josue

    #468239

    somehow private content only is not allowed anymore…

    #468262

    Hi!

    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,
    Josue

    #468814

    Looks 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
    Robert

    #468818

    You are welcome, well if that works for you then it’s fine :)

    Best regards,
    Josue

    #468823

    just saw, that on a mobile, the language code is visible now. before it was part of the mobile menu.

    #469290

    Hey!

    Add this to Quick CSS:

    @media only screen and (max-width: 767px) {
        ul.avia_wpml_language_switch {
            display: none;
        }
    }

    Regards,
    Josue

    #471689

    Hi Josue,

    thanks for that. Just needed to adjust the px to my mobile settings. Works.

    Cheers
    Robert

    #471745

    You are welcome Robert, glad to help :)

    Regards,
    Josue

Viewing 18 posts - 1 through 18 (of 18 total)
  • You must be logged in to reply to this topic.