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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login