Passer au contenu Passer à la barre latérale

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,
            );
            

Laisser une réponse

Veuillez rester sur le sujet et être respectueux envers les autres. Si vous avez besoin d'aide pour des problèmes non liés à ce message, utilisez notre Forum de Support pour démarrer une discussion ou soumettre un ticket.

Vous pouvez utiliser ces balises :
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>