Adding a page for your clients settings, contact info, social links or content you need available to the entire site is a nice way to keep track of important information displayed on the site and to allow your client to update their info when needed. Add to your functions.php or other custom functions php file. This assumes you are using Advanced custom fields as either a plugin or as part of your theme.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
// Add Options page if( function_exists('acf_add_options_page') ) { acf_add_options_page(array( 'page_title' => 'Theme General Options', 'menu_title' => 'Theme Options', 'menu_slug' => 'theme-general-options', 'capability' => 'edit_posts', 'redirect' => false )); } |