Remove the keyboard shortcut link

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
utony
Veteran Member
Posts: 93
Joined: 2020-04-03 18:37

Remove the keyboard shortcut link

Post by utony » 2020-12-21 22:05

So I really do not like the keyboard shortcut icon and link to keyboard shortcuts. With 5.90 it is now just there! How can we turn that off and remove it from the top header??? I tried to find it in the project, but I am tired of looking for it. Can anyone point me in the right direction? Also, can this be a admin option to turn on/off instead of it just being there??? It's screwing up my top menu.

T

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: Remove the keyboard shortcut link

Post by ronwill » 2020-12-21 22:24

I have commented it out in the incommon.php file as below. As this file gets overwritten it will need updating each project generation.
It's around line 500 in my file (will be different)

Code: Select all

<!--
				<p class="navbar-text navbar-right help-shortcuts-launcher-container hidden-xs">
					<img
						class="help-shortcuts-launcher" 
						src="<?php echo PREPEND_PATH; ?>resources/images/keyboard.png" 
						title="<?php echo html_attr($Translation['keyboard shortcuts']); ?>">
				</p>
-->
Hopefully someone can provide you with a better coded solution!
Cheers,
Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Remove the keyboard shortcut link

Post by pbottcher » 2020-12-22 17:45

Hi,
you can add something like

Code: Select all

<script>
$j(function() {
	$j('.help-shortcuts-launcher-container').hide();
})
</script>
to the hooks/footer-extras.php

If you want to remove the object user .remove() instead of .hide()
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.

SkayyHH
Veteran Member
Posts: 425
Joined: 2015-04-27 21:18

Re: Remove the keyboard shortcut link

Post by SkayyHH » 2020-12-28 07:20

I hide the launcher via css in hooks/header-extras.php:

/* Hide Shortcuts-Launcher */
.help-shortcuts-launcher{
display: none;
}

AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Re: Remove the keyboard shortcut link

Post by AhmedBR » 2022-10-27 12:42

I am currently using this code in footer-extras.php

Code: Select all

<script>
	$j('a.help-shortcuts-launcher').hide();
</script>
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

Post Reply