تخطي إلى المحتوى تخطي إلى الشريط الجانبي

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>