Viewing 6 replies - 1 through 6 (of 6 total)
  • I may be out of depth here (likely) but you may be the only one seeing that, as you are the admin.

    Thread Starter zeaks

    (@zeaks)

    Yeah I know only the admin can see it, I want it removed for a child theme as the child theme doesn’t use a header so the link is pointless.

    Yikes!, Gotchya.

    I have already asked the same question and in a 2010 Child Theme you cannot remove the Appearance > Header or Appearance > Background, which are set by the parent.

    There are functions to add theme support but not to remove theme support for all theme features.

    They are listed as “Extra Theme Support” but there is no function to remove support for these functions.

    You can remove support for “Theme Functions”:
    -> Post Thumbnails
    -> Navigation Menus
    -> Widgets
    -> Post Formats

    You cannot remove support for “Extra Theme Functions”:
    -> Custom Backgrounds
    -> Custom Headers
    -> Editor Style
    -> Automatic Feed Links

    The pages are added with the function add_theme_page(), but there is also no remove_theme_page().

    The only ways around this is to create a full theme and remove the header parts in functions.php.

    Looking at the 3.1 beta 2 theme it is not addressed there, it would be good if WordPress added these calls to functions in the default theme so a child theme could overide these.

    HTH

    David

    Thread Starter zeaks

    (@zeaks)

    This seemed to remove both the header and background controls, I just added the background control back. Haven’t run into any issues with it yet.

    function twentyten_setup() {
    /* leave the parts of the code in that you want to get executed;
    for instance, remove the code that does the custom header stuff */
    }
    add_custom_background();
    add_theme_support( 'post-thumbnails' );

    @adeptris thanks for the tutorial on your site, I’ve learned alot from it.

    Hi Zeaks,
    I had not thought of this one, we have been discussing this here in another topic.

    Copy the whole function ‘twentyten_setup()’ to the child theme, remove any code you need to, add any new code you want, using the same function name in the child function.php, then this will be loaded and not the parents.

    The only problem with this is that as the theme is updated you lose the new functions.php code and any code changes.

    In the upcoming release there is new code in the functions.php, when the default theme is over-written this code will not be availiable to the child theme.

    Thanks for the feedback on my tutorials! ??

    David

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Twenty Ten admin functions’ is closed to new replies.