Skip Navigation

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
- 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 -
- 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Nicolas V. 1 year, 1 month ago.

Assisted by: Nicolas V..

Author Posts
November 24, 2023 at 9:17 am #14914767

marjoleins

On our webshop page in the first secondary language German we are missing the header, footer and sidebar (hidden link). The webshop page in the other secondary language (English) is working fine, see attachments (hidden link) and also in the default language (Dutch) all is working as expected. The other store pages in German (categories, checkout) are working fine.
We already tried clearing the complete cache (wp-rocket), resaving the webshop page in German, resaving the German header but none is working.
We are having this issue since some time, and it disappears after a while. We don't know what's causing this behaviour and we also don't know how to fix it. Is it some theme incompatibility between WPML and the theme Impreza?

Seiten-–-De-Bentofabriek.jpg
Bento-Shop-–-Bentofan.jpg
November 24, 2023 at 5:10 pm #14920043

Nicolas V.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello,

Welcome to the WPML support forum. Looking at the source code of both links I can see that the DE version has body classes that the EN version doesn't have: "header_none" and "state_default".

I guess those CSS reflect why you don't have a header.

I had a similar case with another theme where the theme had custom fields to set custom layouts on each page and those fields weren't copied to the translation which result in different layouts.

Does those fields/options sounds familiar to you? If yes, let's try the same approach:
- Go to "WPML > Settings > Custom Fields Translation"
- Check the box "Show "Multilingual Content Setup" meta box on post edit screen." and click on "Save" below the table
- Then go to the original page in EN, you will find a new section "Multilingual Content Setup", click on "Show system fields" (to be sure you see all fields)
- Now try to identify the field that is responsible for the header and change the translation preference to "COPY"

If your theme is working differently, please give me as much detail as possible. Do you have an options page to set the layout? Can you share screenshots from the backend?

November 28, 2023 at 3:43 pm #14941531

marjoleins

Hi Nicolas,

Thanks a lot for your reply.
I checked the solution that you did send me, but unfortunately this doesn't work. At this time, the page I did send you earlier (hidden link) is showing correctly. We don't know how this is possible, but we want to make sure this doesn't happen again. (it looks like this problem shows up and disappears at random...)

The details of our webshop and theme setup:
Theme is Impreza, we are using templates for header and footer (but not for sidebars and also the sidebar disappeared earlier) (see attached file). In the theme options we can choose what header we want to have for the different page types.
We are using WP Rocket for caching, but I already tried with caching disabled.
I have no idea how header, header EN en header DE are linked. I tried looking them up in translation management by ID and name, but didn't find them.
We are using a different domain for each language.

At this time, all is working as expected, but if you have any idea what can cause these problems or if you know where the template translations are linked together please let me know.

Headers-‹-De-Bentofabriek-—-WordPress.png
November 28, 2023 at 9:27 pm #14944813

Nicolas V.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello,

Sorry I misunderstood your lscreenshot in my last reply, that's why I deleted it. You are actually looking at all languages and that's why you have the same header showing in all 3 languages.

I see that you can edit the display conditions of each header in "theme options".

From our documentation:

With Impreza, you can customize a page’s layout. This allows you to change the appearance of the sidebar, header, and footer for particular posts, pages, or custom post types.

If you make changes to your page’s layout in your default language without updating the content, WPML will automatically sync these changes to your secondary language pages.

Ref: https://wpml.org/documentation/theme-compatibility/build-multilingual-websites-using-the-impreza-theme-and-wpml/

Could you try the following:
- Go to the theme options in your primary language and resave those layouts and conditions
- Then make sure to purge your cache
- This should be enough to apply the same layouts to your translations

November 29, 2023 at 11:43 am #14950039

marjoleins

Hi Nicolas,

Thanks again for your reply. At this time, all the pages are looking fine. Let's wait for this to happen again. Then, I'll resave the layouts and conditions and purge the complete cache. Hopefully, this will solve the issue. otherwise, I'll let you know!

Regards,
Marjolein

November 29, 2023 at 4:05 pm #14953603

Nicolas V.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello,

Ok, I'll let that ticket open waiting for your feedback.

Enjoy the rest of your day.

The topic ‘[Closed] Header, footer and sidebar missing from webshop page in 1 language’ is closed to new replies.