What's New
This topic contains 2 replies, has 2 voices, and was last updated by blackrider Apr 18.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
This topic contains 2 replies, has 2 voices, and was last updated by blackrider Apr 18.
Hello!
I built my product page placing the Product pack and Product (related products) widgets inside Accordion widgets, and then I managed to hide the accordion completely if no elements ware available for its corresponding sub-widgets using the following CSS:
/* Hide 'Product pack' and 'Related Products' sections if empty */
.elementor-element-282b2de:not(:has(.stsb_grid_wrapper.stsb_grid_every_0)) {
display: none;
}
.elementor-element-77721ac:not(:has(.stsb_grid_wrapper.stsb_grid_every_0)) {
display: none;
}
My question is: could that be integrated as an option for the corresponding (compatible) widgets, like: Tabs & Megamenu, Menu, Accordion, so them get hidden if the widget inside them gets hidden too?
Thank you!
That’s way more advanced than ordinary usage, technically, that’s achievable by adding a dynamic display condition feature for each tab/menu item, but we are not going to do that.
Your solution works, that’s great. I currently don’t have a better solution. I will keep the request in mind because logically correspondent items should be hidden.
You must be logged in to reply to this topic.