Background of the issue:
I am working on translating custom WordPress pages that were developed without the use of any page builders. The theme and its pages were custom-coded by a WordPress developer. This website must comply with WCAG 2.1/2.2 and Section 508 accessibility standards. To ensure compliance, each page is tested using the AXE accessibility tool by Google.
Symptoms:
The pages are failing AXE tests because certain dynamic elements rendered by WPML are not contained within proper landmarks.
Questions:
How can I ensure that dynamic elements rendered by WPML are contained within proper landmarks to pass AXE accessibility tests?