Thanks for reporting this.
Widget areas inserted as shortcodes disregard the display conditions that have been selected, but I can see how this can be confusing, and how it could be useful to have a parameter that would hide it if no conditions were met.
Can you tell me more about your use case, e.g. why insert the sidebar manually with a shortcode on a page and then only show it if some conditions are met (what conditions in your case)?
Hi Joachim and thank you for replying.
I have a shortcode from a plugin that doesn’t work well on some pages due to formating. shortcode works if it is included in a widget in the pages I want. The issue is that I want it to be visible in specific pages (in this case in 2 lessons of a course).
There is already a widget in all lessons, but for what I want to achieve I need to have some way of creating a conditional widget (that includes the shortcode) that appears on that specific course and those specific lessons, inside the actual widget that is available in the entire course.
Is something like this:
Course
> Lesson 1 (normal widget)
> Lesson 2 (normal widget which includes the conditional widget with the shortcode)
> Lesson 3 (normal widget)
> Lesson 4 (normal widget)
> Lesson 5 (normal widget which includes the conditional widget with the shortcode)
I hope I could explain it well.
Apologies for the delayed response here.
I just released version 3.12.2 which will allow you to have a setup like this:
1. Create a sidebar A for all your lessons, insert it with shortcode
2. Create sidebar B, add Lesson 2 and 5 as Display Conditions. Under Actions, let this sidebar replace A