Keyboard shortcut for laytheme admin
-
Hi guys,
does anybody know a good keyboard shortcut plugin for Wordpress?
I want to be able to access the Wordpress backend by pressing SHIFT + A while on my website.
cheers
-
Hi @TKN
you can write in jQuery that it will open a link when you hit those keys.Should not be that difficult.
Best!
Marius
-
In case anybody needs this. Here is a script that let’s you get to your laytheme admin by pressing SHIFT + A in your frontend.
Next feature I want to add: Editing the current page you are on by pressing SHIFT + E
(function( $ ) { var $doc = $( document ); $doc.ready( function(){ $doc.on( 'keydown', function( e ){ if ( ! $( e.target ).is( ':input' ) ) { if ( 65 == e.which && e.shiftKey ) // 65 = Number of "a" character in the Javascript Char Codes window.location = "http://www.yourwebsiteurl.com/wp-admin"; { } } }); }); })( jQuery );
-
HI @TKN
really sweet!Please keep in mind, that this gets overwritten, as soon as an update gets installed.
Also a good input for the future!
Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com