Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by Bruno Kos 2 weeks, 3 days ago.

Assisted by: Bruno Kos.

Author Posts
December 15, 2025 at 8:19 am

jelleT-3

All widgets that are set to only display on a specific language now show on all languages

December 15, 2025 at 1:44 pm #17664395

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

I tried to reproduce the issue on a clean sandbox by mimicking your setup as closely as possible.
hidden link

I registered a sidebar with sidebar-level wrapper markup (same structure as on your site):

register_sidebar( array(
    'name'           => 'Home – Blok Tekst 1',
    'id'             => 'scp_home_position_1_text',
    'before_sidebar' => "<div class='d-flex ship-container-widget'>
                            <h2 class='home_text_block'>",
    'after_sidebar'  => "</h2>
                          <div class='arrows'>
                              <p class='left'></p>
                              <p class='right'></p>
                          </div>
                        </div>",
    'before_widget'  => '',
    'after_widget'   => '',
) );

The sidebar is rendered via:

dynamic_sidebar( 'scp_home_position_1_text' );

Inside the sidebar I added a normal (block) widget and restricted its content to a specific language using WPML.

With this setup:

* WPML correctly hides the widget content when switching languages
* In my tests, the sidebar wrapper is not rendered when there is no visible content for the active language

At the moment, I’m not seeing the empty wrapper output on the sandbox.

Could you please confirm if this matches your setup, or if there is anything additional involved (custom widget types, filters, theme logic, or plugin output) that I might be missing?

The topic ‘[Closed] Widgets showing on all languages’ is closed to new replies.