Find out how to remove the Genesis header and footer script settings 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, depending on the customer, you may prefer to hide the Header/Footer script section (under Theme Settings) in the customizer to avoid potential problems.
Are you interested in removing it? Find out how to do it below:
Snippet to remove the Genesis script section from the customizer
Add this fragment to the end of the functions.php file:
Just like that. This section will not be displayed in the customizer.
If you want to simplify it even more you can remove the Genesis content archives section from the customizer.
If you don’t need to adjust the Genesis header and footer scripts from the WordPress customizer, now you know how to delete this section.
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. 😉