Page 1 of 1

Remove Nav Bar Completely

Posted: 2020-04-04 21:22
by utony
Hello All, I am new to the forum, but have been using AG for years. I am looking for a fix. I need to completely remove the Nav bar from certain tables. Reason is I want to embed this certain tables into pages and I want the content of the database to look like it is part of the other site. When you see a nav bar it looks out of place when you use an embed. If you could point me in the right direction I would really be thankful!

Thanks!

Re: Remove Nav Bar Completely

Posted: 2020-04-05 06:51
by onoehring
Hi,

you could try to add a line of JS to that specific page - In my test the bar is gone then:

Code: Select all

document.querySelector("body > div.users-area.container.theme-bootstrap.theme-compact > nav").hide()
Olaf

Re: Remove Nav Bar Completely

Posted: 2020-04-05 12:52
by utony
Thank you so much for the code, and most of all for pointing me to the additional forum posts! I look forward to learning a lot for you and other members of the forum!!!

Stay well,

Tony

Re: Remove Nav Bar Completely

Posted: 2020-04-06 23:15
by nycwebmaster
In What file did you insert this code and in what line?

Thanks!

Re: Remove Nav Bar Completely

Posted: 2020-04-07 06:27
by onoehring
Hi,

put this in your hooks/header-extras.php

Code: Select all

<script>$j("body > div.users-area.container.theme-bootstrap.theme-compact > nav").hide()</script>
Be aware - this is the most simple solution and will probably remove the header from all pages for everyone.

Olaf

Re: Remove Nav Bar Completely

Posted: 2020-04-09 16:38
by utony
Thank you for the reply!

I got the total removal, but still having trouble with the page by page. Can you explain a bit more where to put that code?

Maybe a screenshot?

Thanks!!!

Re: Remove Nav Bar Completely

Posted: 2020-04-09 21:22
by pbottcher
if you just want to remove the nav bar for one page you can add it to the

hooks/TABLENAME-tv.js for a Tableview

hooks/TABLENAME-dv.js for a Detailview

Hope that helps

Re: Remove Nav Bar Completely

Posted: 2021-07-10 16:13
by utony
Perfec, thank you!

Re: Remove Nav Bar Completely

Posted: 2022-02-23 11:05
by amyat
hi
what should i need to write
for remove footer nav bar
for table-dv.js