Is necessary that file? content-visibility-public.css
Maybe can put the style inline? Just for no load many files
How I can remove the file for put the content in custom css
.widget.widget_block:empty {
display: none;
}
About the updates, you need test to last version, because people no will install the plugin for the wordpress alert,
]]>Just like know if work with last wp version and you will continue developing the plugin
]]>Great addition I suggest
Hide the entire page,
I like your plugin, is very good, maybe I can translate to spanish…
My suggestion is add another rule, for sample, English category will hide in English but show in all the others categories,
I need show and hide for English, is true i can use 2 blocks and put hide and show to each one.
I dont no if is possible use all categories less 1 or 2 etc, and if I create one new categorie, will be added automatically, because all categories is activated.
I hope you can test to 6.4 wp update!
Thank you!
]]>A really awesome add on would be to allow blocks to be toggled based on their context
E.g. show on singular pages only or show only on the front page
]]>So your plugin was crashing some buddypress blocks when rendered in the backend as the attribute was not recognised by the rest api, I manged to get them working by doing this:
//allow users to override visibility for members blocks
add_filter(‘bp_members_register_blocks’, array($this,’allow_visibility_controls’), 10, 1);
public function allow_visibility_controls($args){
foreach ( $args as $key => $value ) {
$args[$key]['attributes']['contentVisibilityRules'] = 1;
$args[$key]['attributes']['contentVisibility'] = 1;
}
return $args;
}
You porobablky have a much better solution though which you can add to your plugin.
]]>Let me explain the issue:
For example, an admin sets a visibility on a block that an Editor cannot see the block. The editor signs in, and on the front end, the block is indeed hidden for him. However the Editor can edit the post/page, and disable the visibility rule for that block.
In order to make it bulletproof, maybe only Admins and/or Editors can set the visibility rules, and if a block has a visibility rule for a specific role/user, those who the rule applies to them should not be able to see the block in the editor as well – in this case Authors and Contributors.
As my review of this plugin says, this is a NEAR perfect plugin… so close to perfection, but it is just not there yet, there are some holes in the system…
Thanks,
Nick.
I want to show different block widgets on different category archive pages – is that possible?
]]>