Restricting via Smart Groups

The easiest way to hide modules based on the current users details, or the page they are on, is to use smart groups.

Create smart groups for when you would like the module to appear, then edit the module to use that smart group. Easy, it will then be hidden for any situations where the smart group doesn't take effect.

Restricting via code

When you load the elevio script, you can optionally also send a list of modules that would normally load, that you explicitly do not want to load for the current page.

For example, if you wanted to not display the live chat and the support module on the current page, you can do so with the following:

window._elev.disableModules([1234, 4321]);
Use the IDs of the modules that you want to hide, these are found on your modules list page.

This is useful where you want to use elevio on both a public facing site, and a logged in only section of your site, and you might only want the support module to display for logged in users.