How to Use Conditional Display to Hide Elements on the WooCommerce Shop Page
Content
Many users of Essential Addons for Elementor want to use the Conditional Display feature to hide specific elements, like an archive title, on their WooCommerce Shop page. This is a common request because the main shop page is a products archive and often requires different content than a standard category archive page.
Why This Happens
The WooCommerce Shop page is a unique template that behaves differently than a standard page or post. Configuring conditional logic for it can be confusing because it doesn't always match the expected conditions for a standard page or a custom post type archive.
Potential Solutions
1. Use the 'Archive' Condition: The most effective method is often to use the 'Archive' condition within the Conditional Display settings. Since the Shop page is a product archive, this is the most logical condition to apply. You can then refine it further by specifying the post type if needed.
2. Check for Specific Page Templates: Another approach is to create a condition based on the page template used by your Shop page. This requires your theme to use a unique template for that page.
3. Consider a CSS Workaround: If the conditional logic continues to be problematic, a simple CSS solution can often achieve the same visual result. You can use a custom CSS class on the element you wish to hide and then target the Shop page's body class to hide it.
Example CSS:
body.post-type-archive-product .your-element-class { display: none; }
Important Note on Support
It's important to note that the Conditional Display feature is a premium function of Essential Addons. According to WordPress.org forum guidelines, discussion and support for premium features must be handled through the developer's official support channels, not on public forums.
If you continue to experience difficulties after trying these steps, the Essential Addons for Elementor team will be best equipped to provide specific, in-depth troubleshooting for their premium feature.
Related Support Threads Support
-
Conditional Display: Can’t get it to hide an element on “Shop” pagehttps://wordpress.org/support/topic/cant-get-it-to-hide-an-element-on-shop-page/
-
Allow HTML in Product List Excerpthttps://wordpress.org/support/topic/allow-html-in-product-list-excerpt/
-
How to add a featured Case Study page to a Product page?https://wordpress.org/support/topic/how-to-add-a-featured-case-study-page-to-a-product-page-3/
-
How to add a featured Case Study page to a Product page?https://wordpress.org/support/topic/how-to-add-a-featured-case-study-page-to-a-product-page-2/
-
Add widget to the accordionhttps://wordpress.org/support/topic/add-widget-to-the-accordion/
-
custom fields in product archivehttps://wordpress.org/support/topic/custom-fields-in-product-archive/
-
EA Advanced Search Bar and SearchWP integration concernhttps://wordpress.org/support/topic/ea-advanced-search-bar-and-searchwp-integration-concern/
-
Dynamic Product Data in Advanced Accordianhttps://wordpress.org/support/topic/dynamic-product-data-in-advanced-accordian/
-
accordion elementorhttps://wordpress.org/support/topic/accordion-elementor-2/
-
Order Status with condition displayhttps://wordpress.org/support/topic/order-status-with-condition-display/
-
Addons to create a clickable area?https://wordpress.org/support/topic/addons-to-create-a-clickable-area/
-
Adding Custom Field to Register Formhttps://wordpress.org/support/topic/adding-custom-field-to-register-form/
-
[ACF] Show section only if there is dynamic contenthttps://wordpress.org/support/topic/acf-show-section-only-if-there-is-dynamic-content/