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
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it