# Hide custom text from specific groups

## Summary

To display text only for specific user groups.

In this example, we are using groupID `999` which is the Guest Group.

```
<script>
    if(activeInfo.user.groupID !== 999){
        var cssSettings = `
            .hidden-for-non-guest {
                display: none;
            }
        `;
        $('#guest-css').html(cssSettings);
    }
</script>
<style id="guest-css"></style>
<div class="hidden-for-non-guest">
    <h1>You're a guest.  Please log in!</h1>
</div>
This is text everyone sees.
```

### Steps

Open the Tab Editor and go to Homepage Items then finally select Custom HTML

![](https://4256712066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhZdNSL6M8X_fZlyG10%2F-MiY97fPvAaU69NJcmZe%2F-MiYA4xG23bmNXVXPbuj%2Fimage.png?alt=media\&token=e52223a6-851f-488a-967b-287733d62a02)

Next you will Click which Custom HTML segment you want to use and `Enable`it then change the `Minimum Authentication` to the group you want to allow to see it.  Next you will copy the code from above and paste it into the box at the bottom.  Finally hit the :floppy\_disk: button.

![](https://4256712066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhZdNSL6M8X_fZlyG10%2F-MiY97fPvAaU69NJcmZe%2F-MiYAYnPiahMly7ybp44%2Fimage.png?alt=media\&token=58ff19f3-5407-4758-8719-783f19d19eee)

### Outcome

#### A User who is logged in

![](https://4256712066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhZdNSL6M8X_fZlyG10%2F-MiY97fPvAaU69NJcmZe%2F-MiY_V-ZlcITkSmNpQqN%2Fimage.png?alt=media\&token=a7412a7d-9557-43a5-956a-be12182479ca)

#### A User who is not logged in

![](https://4256712066-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhZdNSL6M8X_fZlyG10%2F-MiY97fPvAaU69NJcmZe%2F-MiY__EPvRL16fTPy2OQ%2Fimage.png?alt=media\&token=b094d0c2-f7e9-4e32-b2c9-82ae5875583c)
