跳到内容 跳到侧边栏

Waiting for author

Resolved in: https://onthegosystems.myjetbrains.com/youtrack/issue/comp-4216

Topic Tags: Compatibility

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' => false to 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,
            );
            

发表回复

保持话题相关并尊重他人。如果您需要与此帖子无关的问题帮助,请使用我们的支持论坛开始聊天或提交工单。

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>