2
Advanced Element Display Conditions Based on DOM and HTML in Elementor
Source: elementor/elementor#31348 · opened by @tezzyyyyy
Describe the Problem As a web designer working with Elementor for many years, I have noticed significant limitations in the currently available Display Conditions functionality. At present, conditions are mostly based on basic parameters such as the page type, user role, or post type. However, there is a lack of flexible tools that would allow more dynamic control over element visibility based on actual conditions present in the page's code—such as CSS classes, HTML attributes, or the presence of other DOM elements. As a result, for more advanced use cases, developers are forced to rely on custom JavaScript or PHP solutions, which is time-consuming and adds unnecessary complexity to the development process. Propose a Solution I suggest extending the Display Conditions feature by allowing conditions based on DOM and HTML, including: • displaying a specific element only if another element on the page contains a given CSS class (e.g., .active), • defining conditions…
No pledges yet. Be the first to back this.
Comments
Similar requests
Custom Boolean functions for Display Conditions
3 votes · 0 comments
Widget Display Conditions to include Woocommerce options
2 votes · 0 comments
Add ACF Taxonomies to Display Conditions
15 votes · 0 comments
Add support for Woocommerce dynamic tags in Display Conditions
3 votes · 0 comments
Reducing the number of DOM by optimizing the menu widget in Elementor
2 votes · 0 comments
No comments yet.