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!
Remove Nav Bar Completely
Re: Remove Nav Bar Completely
Hi,
you could try to add a line of JS to that specific page - In my test the bar is gone then:
Olaf
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()
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
Re: Remove Nav Bar Completely
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
Stay well,
Tony
-
- Veteran Member
- Posts: 90
- Joined: 2015-11-23 01:02
Re: Remove Nav Bar Completely
In What file did you insert this code and in what line?
Thanks!
Thanks!
Re: Remove Nav Bar Completely
Hi,
put this in your hooks/header-extras.php
Be aware - this is the most simple solution and will probably remove the header from all pages for everyone.
Olaf
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>
Olaf
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
Re: Remove Nav Bar Completely
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!!!
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
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
hooks/TABLENAME-tv.js for a Tableview
hooks/TABLENAME-dv.js for a Detailview
Hope that helps
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Remove Nav Bar Completely
Perfec, thank you!
Re: Remove Nav Bar Completely
hi
what should i need to write
for remove footer nav bar
for table-dv.js
what should i need to write
for remove footer nav bar
for table-dv.js