qTranslate-Team / qtranslate-x

Wordpress plugin: Adds user-friendly and database-friendly multilingual content management and translation support.
http://qtranslatexteam.wordpress.com/about/
GNU General Public License v3.0
206 stars 149 forks source link

qTranslate-X is not picking up fields in theme customization page #565

Open AL-Kateb opened 6 years ago

AL-Kateb commented 6 years ago

Hello everyone, I'm new to the plugin, so I'm not sure whether this is an issue or a feature request!

I added a control to my theme customization page like so:

    $wp_customize->add_control('mytheme_search_button_text',array(
        'type' => 'text',
        'section' => 'mytheme_search_button_text',
        'setting' => 'mytheme_search_button_text',
        'input_attrs' => array( 'class' => 'i18n-multilingual')
    ));

And the class displays correctly in the customization page, I was under the impression that all I needed to do is add the class i18n-multilingual to the theme fields and qTranslate-x will take care of the rest. I changed themes and back, nothing happens.

So is this NOT the right way to integrate qTranslate-x into my theme? If so, what should I do to make the plugin pickup fields in customize.php

Thanks