Cet utilisateur n'a pas de sujets favoris.
Sujets préférés du forum
Sujets de forum créés
Statut |
Sujet
|
Supporter | Les voix | Articles | Fraîcheur |
---|---|---|---|---|---|
GravityForms lose styling when the GravityForms MultiLingual plugin is active
Démarré par: antoniusH
en: English Support
Problem: gform_pre_render function altering the form wrapper, here's a step-by-step solution. /wp-content/plugins/gravityforms-multilingual/inc/gravity-forms-multilingual.class.php . public function gform_pre_render( $form ) {<br />return $this->translate( $form );<br />} 3. Replace the existing code with the following to preserve specific form data: public function gform_pre_render( $form ) {<br />// Preserve the page_instance key if it exists<br />$page_instance = isset( $form['page_instance'] ) ? $form['page_instance'] : null;<br /><br />// Translate the form<br />$form = $this->translate( $form );<br /><br />// Reassign the page_instance key after translation<br />if ( $page_instance !== null ) {<br />$form['page_instance'] = $page_instance;<br />}<br /><br />return $form;<br />} Please check if this modification resolves the issue on your site. Keep in mind that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket. |
1 | 8 | Il y a 1 semaine et 4 jours | ||
Cannot translate the submit button in gravity forms
Démarré par: antoniusH en: Chat Support |
1 | 2 |
Il y a 1 année et 7 mois
|