Find out in this tutorial how to get the border editor tool to show up in the editor for a classic WordPress theme using code.
Some of the improvements of the block editor you can enjoy directly if you use a block theme but they are not visible in classic (PHP) themes.
One option to use them is to create a theme.json file and perform a basic configuration. As a result you will get a hybrid theme, it is simpler than it seems and it is the strategy that I recommend because you can get more out of the new features that are coming to WordPress.
But if you prefer to continue using the classic theme as usual, WordPress 6.3 allows the option to support the border tool.
By default the theme will not show the “Border” panel in the editor, but once enabled it will.
Here are the steps to enable it:
Snippet to display border control in a classic WordPress theme editor
Add the following snippet in functions.php:
To see this and another 1097 code snippets of this website, login or subscribe here.
With this line you get the new section that allows you to customize the borders from the block editor.
This code will work in any Genesis child theme or WordPress theme.
Conclusions
There are more and more options you can enable to take advantage of the block editor. Now you know how to enable border customization from within a classic theme.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂