WordPress 테마를 개발 중이지만 내 wp 테마를 widgetizing에 집착했습니다. 몇 가지 자습서를 따르지만 여전히 작동하지 않습니다. 내 대시 보드에 내 위젯 메뉴가 나타나지 않습니다. 이 제 기능과 사이드이다는 내가 가진 : function.php : http://pastebin.com/X679LmVM위젯 메뉴가 Wordpress 대시 보드의 외모 아래에 표시되지 않습니다.
<?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')) {
register_sidebar(array(
'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>'
));
}
?>
sidebar.php :. http://pastebin.com/0TvAKBZy
<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>
</div>
<?php endif; ?>
</div>
당신은 내가 몇 일 :(대한 실망했다, 나를 도울 수 감사를 당신이 사전에 도움을 주셨습니다