WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am developing a WordPress theme, but am stuck on widgetizing my theme.

I have followed several tutorials but still cannot get it to work.
My widgets menu does not appear under Appearance in my dashboard.

This is my function file and sidebar.
From function.php:

function custom_enqueue_scripts() {

        wp_deregister_script( 'jquery' );

        wp_register_script( 'jquery', get_template_directory_uri() . '/bin/js/jquery-1.10.1.min.js', 'jquery', '1.10.1',TRUE);
        wp_register_script( 'fittext', get_template_directory_uri() . '/bin/js/jquery.fittext.js', 'jquery', '1.0',TRUE );

        wp_enqueue_script( 'jquery' );
        wp_enqueue_script( 'fittext' );

add_action( 'wp_enqueue_scripts', 'custom_enqueue_scripts' );

if (function_exists('register_sidebar')) {

                'name' => 'Widgetized Area',
                'id'   => 'katuhu',
                'description'   => 'This is a widgetized area.',
                'before_widget' => '<div id="%1$s" class="widget %2$s">',
                'after_widget'  => '</div>',
                'before_title'  => '<h4>',
                'after_title'   => '</h4>'


From sidebar.php:

<div id="katuhu">

<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Widgetized Area')) : else : ?>

<div class="pre-widget">
    <p><strong>Widgetized Area</strong></p>
    <p>This panel is active and ready for you to add some widgets via the WP Admin</p>

<?php endif; ?>


share|improve this question

The file name is functions.php, not function.php. Note the "s". Otherwise, the code should work, and does work when I try it.

share|improve this answer

protected by Community Jul 31 '15 at 19:42

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.