Find out in this tutorial how to remove the settings to add CSS from the WordPress customizer using code.
One practice I recommend, as a good fan of minimalism, is to remove all elements of a child theme that you will not be using.
This is especially useful for your customers, as you will reduce the noise and encourage them to have a better view of the settings that really need to be changed.
An ideal place to apply this useful ‘cleaning’ and leave only the 100% necessary elements is the WordPress customizer. Why?
Because thanks to its ease of use and to the fact that it allows you to see changes in real time, it is the ideal place for your clients to make the changes they need.
For example, one of the elements you can remove is the section that allows you to add custom CSS, either because you don’t want the user to change it or because you prefer to modify the style.css.
Are you interested? Here’s how to do it:
Snippet to remove the additional CSS section in the customizer
Enter this fragment at the end of the functions.php file:
To see this and another 965 code snippets of this website, login or subscribe here.
Just like that. This section will not be displayed in the customizer.
Conclusions
If you don’t need the option of adding CSS within the WordPress customizer, now you know how to remove this section.
Any questions? I read you 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. 😉