A Guide to Block Editor Shortcuts in WordPress
How to create a page with a shortcut for a site index in the block editor in WordPress
The block editor in WordPress is a powerful tool for creating and editing content, but it can take time to master. One way to increase your efficiency and productivity in the block editor is by using shortcuts. Shortcuts are a set of keys or commands that allow you to perform common tasks quickly and efficiently. In this blog, we’ll explore how to create a page with a shortcut for a site index in the block editor in WordPress
Example of how to create a page with a shortcut for a site index in the block editor in WordPress:
- Create a new page in the block editor by navigating to Pages > Add New in the WordPress dashboard.
- Add a new block by clicking the plus (+) icon in the top-left corner of the editor.
- Search for and add the “Custom HTML” block by typing “Custom HTML” into the search bar and selecting it from the available options.
- In the “Custom HTML” block, enter the following code to create a link to your site index:
<a href=”/site-index/”>Site Index</a>
- Save the block and exit the editor.
- Navigate to the “Keyboard Shortcuts” settings in the WordPress dashboard by selecting Users > Your Profile.
- Check the box next to “Keyboard Shortcuts” to enable shortcuts.
- Scroll down to the “Custom Shortcuts” section and click “Add New Shortcut.”
- In the “Shortcut Key” field, enter the key combination you want to use for the shortcut (e.g. Ctrl + Alt + S).
- In the “Action” field, enter the following code to link to your site index:
window.location.href = ‘/site-index/’;
- Save the new shortcut and exit the settings.
- Return to the page you created in step 1 and add a new block by clicking the plus (+) icon.
- Search for and add the “Shortcut” block by typing “Shortcut” into the search bar and selecting it from the available options.
- In the “Shortcut” block, enter the name of your shortcut (e.g. “Site Index”) and the key combination you entered in step 9.
- Save the block and publish the page.
Now, whenever you want to navigate to your site index from any page on your website, you can simply press the key combination you defined in the shortcut and the link to your site index will open automatically. This can save you time and increase your productivity, especially if you frequently need to access your site index while editing content in the block editor.
Mastering the block editor in WordPress can be challenging, but using shortcuts can help you work more efficiently and effectively. By enabling and using block editor shortcuts, you can navigate the editor more easily, format text and media more quickly, and manage blocks with greater precision. Whether you’re a beginner or an experienced WordPress user, taking advantage of block editor shortcuts can help you create and edit content more efficiently and with greater ease.
WordPress Block Editor Shortcuts On Amazon
Code Companion GPT
Engaging code guide with humor and unique explanations.
Invest in your future & learn
Learn affiliate marketing & build your own website.
Heads up! Make sure you sign up using my referral link to get access to my personal coaching and all features.
👉 Sign Up