If you want headers and other things removed you need to look in functions.php where you see custom headers, background being added. In your child theme for all people to use you'd call the function and just remove each there.
if ( ! function_exists( 'framemarket_setup' ) ) :
function framemarket_setup() {
Now... you may also want to consider plugin options to this let me tag in some of the support staff to see if they have a suggestion that is less of a coding nightmare.
// set up options and validate
function framemarket_options_init(){
register_setting( 'framemarket_options', 'framemarket_theme_options', 'framemarket_options_validate' );
}
Responses (3)
Theme Designer — 8th January 2012 12:54 #
That function is more a 'kill entire section' ie:
It's not designed to remove 'under' so easily.
If you want headers and other things removed you need to look in functions.php where you see custom headers, background being added. In your child theme for all people to use you'd call the function and just remove each there.
Now... you may also want to consider plugin options to this let me tag in some of the support staff to see if they have a suggestion that is less of a coding nightmare.
Member — 17th January 2012 06:02 #
As an example, if I wanted to remove the Theme Options submenu, it looks like it's defined in options.php as:
<?php
add_action( 'admin_init', 'framemarket_options_init' );
add_action( 'admin_menu', 'framemarket_options_add_page' );
// set up options and validate
function framemarket_options_init(){
register_setting( 'framemarket_options', 'framemarket_theme_options', 'framemarket_options_validate' );
}
// create menu page
function framemarket_options_add_page() {
add_theme_page( __( 'Theme Options' ), __( 'Theme Options' ), 'edit_theme_options', 'theme_options', 'framemarket_options_create_page' );
}
What's the right function to include in a plug-in to remove the page?
Sales & Support Lead — 20th January 2012 03:54 #
Hiya,
An alternate solution would be to use a plugin like the Admin Menu Editor which allows you to dictate exactly what folks can see across the network:
http://wordpress.org/extend/plugins/admin-menu-editor/
Should do the trick for ya. Thanks!
Become a member