• Resolved Beta2k

    (@beta2k)


    i set everything up and it’s basically working. however, i wonder how can i edit custom fields with the language switching as can be seen on the screenshot: https://www.ads-software.com/plugins/acf-qtranslate/screenshots/
    i want to be able to switch the language directly at the specific custom field.

    right now, i have to scroll to the top of the page and switch the language with the buttons there. this is very time consuming if you have many custom fields, because you have to do the scrolling very often… so how can i get the language switcher riders as can be seen in the linked screenshot?

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author funkjedi

    (@funkjedi)

    If your ACF fields are using the qTranslate field types then you can add this to your functions.php and the switch controls will show up above the fields as well.

    add_action('admin_footer', 'qtranslatex_add_switcher_controls');
    function qtranslatex_add_switcher_controls() {
    ?>
    <style>
    .multi-language-field {margin-top:-38px!important;}
    .multi-language-field .wp-switch-editor[data-language] {display:block!important;}
    </style>
    <?php
    }
    Thread Starter Beta2k

    (@beta2k)

    thanks. works like a charm!

    is this documented somewhere? or how could i have possibly found this one out without you?

    btw: i have one more issue. see: https://www.ads-software.com/support/topic/get-custom-field-in-specific-language?replies=2

    would be glad if you could help there aswell. thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘language switcher for custom fields’ is closed to new replies.