Waiting for author
Overview of the issue
When using Houzez Theme, some strings and widgets cannot be translated, namely :
– Houzez Contact Form > Sumbit buttom
– Houzez Grid Builder > URLs
– Submit button from comments.php (Post comments form)
– Houzez Custom Carousel
Workaround
1- For Grid Builder, Contact Form widgets and Custom Carousel, add the following XML in WPML > Setting > Custom XML Configuration:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <wpml-config> <elementor-widgets> <widget name= "houzez_elementor_contact_form" > <fields> <field>form_name</field> <field>form_fields</field> <field>button_text</field> <field>email_to</field> <field>email_subject</field> </fields> <fields-in-item items_of= "form_fields" > <field>field_label</field> <field>placeholder</field> </fields-in-item> </widget> <widget name= "Houzez_elementor_grid_builder" > <fields> <field>image>url</field> <field>image>alt</field> <field>grid_title</field> <field>grid_subtitle</field> <field>more_text</field> <field type= "LINK" >more_link>url</field> <field>more_text_d</field> <field>properties_text</field> <field>property_text</field> </fields> </widget> <widget name= "houzez_custom_carousel" > <fields> <field>carousel_title</field> <field>carousel_tagline</field> </fields> <fields-in-item items_of= "slides" > <field>content</field> <field>title</field> <field>read_more_text</field> </fields-in-item> </widget> </elementor-widgets> </wpml-config> |
Then apply a small edit to the post for these new fields to load in the translation editor.
2- For the “Submit” button :
- Open ../wp-content/themes/houzez/comments.php
- Look for “submit-button” in line 55
- Replace
1
value=
"%2$s"
with
1value=
"%4$s"
-
The code should look like this after the change :
1'submit_button'
=>
'<input style="text-transform:capitalize;" name="submit" type="submit" id="submit" class="submit btn btn-primary" value="%4$s">'
,
// Customize the button class