ElementsKit Header Offcanvas problems with Polylang
-
I will always speak in the context of a site created with Elementor + Astra + ElementsKit.
I have a Header designed with ElementsKit, which has an Offcanvas Header button.
When adding translations to the Header with Polylang (duplicating the post and updating the text to the corresponding language – all this done automatically by Polylang), all the Header content works perfectly. So far, so good.
The problem lies in translating the Offcanvas content. This content cannot be translated from the Header itself, so to update the content, it is necessary to edit a post in which the header is visible (in my case, my translated landing).
When editing Offcanvas content in a post that is not in the default language, a message such as “Edit content” will appear on it. This is where the problem begins.
This will open the editing of a “Widget Area,” with a post name similar to “dynamic-content-widget-c92d005-99.”
When I go to “Post settings -> Languages -> Add translations” this results in a link opening with the message “Invalid post type.”
The link that is opening is /wp-admin/post-new.php?post_type=elementskit_content&from_post=1743&new_lang=es&_wpnonce=63a54df49e which makes me think that content of the “elementskit_content” type cannot be recognized by Polylang (for some reason, it is unable to copy this kind of content to the selected secondary language).
What I have tried:
- Make sure that in Polylang Settings, under “Custom post types and Taxonomies,” “elementskit_content” is present, and it is.
- Enabled and disabled the Polylang options to force some kind of refresh.
- Manually deleted all translations, removed the Polylang plugin, reinstalled it, and repeated the process.
- Clear all caches on my site (browser and plugins). Uninstall all cache plugins from my site.
- Clear the Elementor cache. Disable the Elementor cache. Manually disable the cache for elements (Header Offcanvas button).
- Make sure that in the Elementor settings, under “Post Types,” “ElementsKit items” is selected.
I don’t know what else to try, I’m not getting any change. I have the latest versions of everything. ElementsKit Lite 3.7.2, Polylang Version 3.7.3, Elementor Version 4.5.5, WordPress 6.8.2; I’m just a little behind with the PHP version, as I’m running 8.2.29 and not 8.3.
I think the only option I have now is to use the “Language Visibility” feature and try to duplicate the content, translate it, and render it conditionally. This will use the header in the default language. Naturally, this will cause some problems with SEO.
I am at your disposal if I can be of any help. I can share with you a backup of my site made with WPVivid.
You must be logged in to reply to this topic.