This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing issues where specific price options (like 2000€, 5000€, etc.) appear on the EN landing page but not on the translated DE, FR, IT pages in a site using the Houzez theme, the issue might be related to JavaScript handling in the theme.
Solution:
We recommend trying the following steps after ensuring you have a full site backup:
1) Navigate to the
wp-content/themes/houzez/js
folder.
2) Open the
custom.js
file for editing.
3) Locate line 1963.
4) Update the JavaScript function from:
var property_status_changed = function(prop_status, $form) { if( prop_status == for_rent ) { $form.find('.prices-for-all').addClass('hide'); $form.find('.prices-for-all select').attr('disabled','disabled'); $form.find('.prices-only-for-rent').removeClass('hide'); $form.find('.prices-only-for-rent select').removeAttr('disabled','disabled'); $form.find('.prices-only-for-rent select').selectpicker('refresh'); } else { $form.find('.prices-only-for-rent').addClass('hide'); $form.find('.prices-only-for-rent select').attr('disabled','disabled'); $form.find('.prices-for-all').removeClass('hide'); $form.find('.prices-for-all select').removeAttr('disabled','disabled'); $form.find('.prices-for-all select').selectpicker('refresh'); } }
To:
var property_status_changed = function (prop_status, $form) { if (prop_status === 'for-rent') { // Ensure comparison is with correct value $form.find('.prices-for-all').addClass('hide'); $form.find('.prices-for-all select').prop('disabled', true); $form.find('.prices-only-for-rent').removeClass('hide'); $form.find('.prices-only-for-rent select').prop('disabled', false).selectpicker('refresh'); } else { $form.find('.prices-only-for-rent').addClass('hide'); $form.find('.prices-only-for-rent select').prop('disabled', true); $form.find('.prices-for-all').removeClass('hide'); $form.find('.prices-for-all select').prop('disabled', false).selectpicker('refresh'); } };
5) Clear all types of caches.
If this solution does not resolve your issue or seems irrelevant due to being 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.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/media-translation-and-houzez-theme-edit-alt-text-for-property-images/