Enable the Enrollment Visibility setting for the Header block

Dynamic blocks, like the Heading block, do not have the Enrollment Visibility setting added to them. Some of these dynamic blocks may have issues using the Enrollment Visibility setting while others will have their block settings layout changed.

One workaround is to add the block to a Group block, which has the Enrollment Visibility enabled.

If you’d like to enable the setting for the block itself, this example shows how you can add the setting to the Heading block.

Then, add a js/lifterlms-enable-block-visibility-header.js file in your child theme with the following:

Now when you add a Heading block there will be an Enrollment Visibility setting available.

Last Updated on
Was this article helpful?