Page 1 of 1
Remove the keyboard shortcut link
Posted: 2020-12-21 22:05
by utony
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
Re: Remove the keyboard shortcut link
Posted: 2020-12-21 22:24
by ronwill
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
Re: Remove the keyboard shortcut link
Posted: 2020-12-22 17:45
by pbottcher
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()
Re: Remove the keyboard shortcut link
Posted: 2020-12-28 07:20
by SkayyHH
I hide the launcher via css in hooks/header-extras.php:
/* Hide Shortcuts-Launcher */
.help-shortcuts-launcher{
display: none;
}
Re: Remove the keyboard shortcut link
Posted: 2022-10-27 12:42
by AhmedBR
I am currently using this code in footer-extras.php
Code: Select all
<script>
$j('a.help-shortcuts-launcher').hide();
</script>