ナビゲーションをスキップする

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:


<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
    value="%2$s" 

    with

    value="%4$s" 
  • The code should look like this after the change :

    '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

返答する

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

これらのタグを使用できます:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>