# Hide info bar on certain scenes

**URL:** https://forums.knack.com/t/hide-info-bar-on-certain-scenes/9075
**Category:** API & Custom Code
**Created:** [November 1, 2019, 6:10pm UTC](https://forums.knack.com/t/hide-info-bar-on-certain-scenes/9075 "2019-11-01T18:10:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![IsaacSpear74576](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@IsaacSpear74576](https://forums.knack.com/u/IsaacSpear74576)
#### Post date: [November 1, 2019, 6:10pm UTC](https://forums.knack.com/t/hide-info-bar-on-certain-scenes/9075/1 "2019-11-01T18:10:00Z")

</div>

I'm trying to add some JS to hide the info bar on certain scenes but the solution I found isn't working for me. Here is what I've tried.

$(document).on('knack-scene-render.scene\_41', function(event, scene) {  
var myElement = document.querySelector(".kn-info-bar");  
myElement.style.display = "none!important";  
});

and ideas about what I'm doing wrong?

thanks!

---

<div class="post-metadata">

### Author: ![SergiEgea35645](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sergiegea35645/32/235_2.png) [@SergiEgea35645](https://forums.knack.com/u/SergiEgea35645)
#### Post date: [November 11, 2019, 12:13am UTC](https://forums.knack.com/t/hide-info-bar-on-certain-scenes/9075/2 "2019-11-11T00:13:19Z")

</div>

$('.kn-info-bar').hide();

---

<div class="post-metadata">

### Author: ![Kelson](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/kelson/32/762_2.png) [@Kelson](https://forums.knack.com/u/Kelson)
#### Post date: [November 7, 2019, 6:19pm UTC](https://forums.knack.com/t/hide-info-bar-on-certain-scenes/9075/3 "2019-11-07T18:19:49Z")

</div>

What is your scene view? Is it correct?
