Waiting for author
Resolved in: https://onthegosystems.myjetbrains.com/youtrack/issue/comp-4216
Overview of the issue
When using WP Residence and its Studio Templates, translating header/footer templates can fail: the display rules get cleared or overridden, and the header/footer template from the default language shows up in all languages.
Workaround
Please, make sure of having a full site backup of your site before proceeding.
- Open the …wp-content/plugins/residence-studio/includes/class-header-footer-templates.php file.
- Look for the function
display_head_foot()(around line 87). - Add
'suppress_filters' => falseto the arguments as follows:public function display_head_foot() { $conditions = $this->build_conditions_for_post(); $args = array( 'post_type' => 'wpestate-studio', 'posts_per_page' => -1, 'post_status' => 'publish', 'suppress_filters' => false, );