elegantthemes / create-divi-extension

MIT License
186 stars 59 forks source link

Missing Visibility options from child modules #169

Open munirkamal opened 6 years ago

munirkamal commented 6 years ago

Problem Description

Similar to parent modules we should have visibility options for child modules by default as well. Or at least an easy way to define it like other advanced fields.

RuuddM commented 6 years ago

I also would like this option. At this moment I'm (as far as I know) only able to use depends_show_if in child items. But this does not seem to work for multiple dependencies, only single. Which is not enough for alot of settings sadly.

Also it might be nice to notify users of not being able to use the show_if functionality in child modules here: https://www.elegantthemes.com/documentation/developers/divi-module/settings-field-visibility/ It would have saved me alot of time.

xxtesaxx commented 6 years ago

You can easily implement this feature yourself. Just create a field of type multiple_checkboxes. Then in you child modules static css(props) (or the php render) you use the %%order_class%% selector and hide the module with display:none for the appropriate device types. :)

But I totally agree. It would be nice to have this available as advanced field

munirkamal commented 6 years ago

@xxtesaxx

Yeah, that is easy to implement that way. But still, I suppose this should be available by default for child modules as well.