Discover in this tutorial how to get the link color tool displayed in the editor in a classic WordPress theme using code.
Some of the block editor improvements 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 link color tool.
By default the theme will only display the text and background color control in the “Color” panel of the editor, but once enabled you will also have access to the link.
Here are the steps to activate it:
Snippet to display link color 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 link color from the block editor.
This code will work in any Genesis child theme or WordPress theme.
Conclusions
There are more and more options that you can enable to take advantage of the block editor. Now you know how to enable link color change from within a classic theme.
Any questions? Let me know in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉