• Resolved pok4

    (@pok4)


    Hi, guys!

    I have the following code:
    if( !current_user_can( ‘manage_options’ ))
    echo do_shortcode(‘[gtranslate]’);

    but i dont see the frame for gtranslate in dashboard.. Everything is ok in previous version, but with the latest … frame and select box with drop down not works..

    Can you give me suggestions about that ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    It is not designed to be on the admin area to not cause wrong language input into the original website.

    However if you want to have it you can try to call echo GTranslate::render_shortcode(null) instead. Make sure GTranslate is already defined before you do that just in case to not cause errors.

    Thanks! ??

    • This reply was modified 2 years ago by edo888.
    Thread Starter pok4

    (@pok4)

    Not works in this way. I added the code in bottom of admin-footer.php (wp-admin folder)
    I know that this can have problems, but i dont have fill forms/textarea/inputs. I have only a few items for non admin users and i want to translate it…

    Your code not works.. In previous version is worked well, but for now – no.

    Plugin Author edo888

    (@edo888)

    OK, I have tried and indeed. We are using some functions which are intended for front-end use only and they do not function in admin back-end.

    I can only suggest to get the widget code directly from https://gtranslate.io/website-translator-widget and place it in the admin footer.

    Thanks! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gtranslate in admin area (WP 6.1.1)’ is closed to new replies.