Adding a section to admin menu for global settings

Bear with me a moment as I am still relatively new to WP dev.

I am currently building a custom site that loads certain blocks on pages using get_template_part(); .

So for example, the home page will have it’s own relevant content but will also include generic content (subscribe, contact, awards…). I do not want these sections to be hard-coded but instead leave them as editable, ideally as an additional menu option within the admin area so the user only needs to change it in one place.

My current solution is not ideal. I am using the Advanced Custom Forms plugin and placing the required text in the default text area. However, even if this is updated it will not update all pages globally and the user will need to go into each individual page to re-publish the it with the new content.

Is it possible to code a new option onto the side menu that will store global settings for template parts?

1 Answer
1

The Customization API is what you’re after. Lets you define site-wide settings for theme/plugin customization.

Leave a Comment