• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Remove the Genesis script section from WordPress customizer

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:

To see this and another 847 code snippets of this website, login or subscribe here.

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.

Conclusions

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. 😉

Genesis Framework PHP WordPress Customizer

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?