我在这里新以及在网站开发:) 我有一个关于WordPress的问题。 我尝试制作侧栏小部件。我的主题WordPress的小部件
在我的sidebar.php文件写到:
<div id="sidebar">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
<div>some html here </div>
<?php endif; ?>
和function.php
<?php
if (function_exists('register_sidebars'))
register_sidebar();
?>
但它没有出现在列表中的小部件,但是当我点击外观部件,在右侧部分出现在Sidebar 1中,我甚至无法移动它。
你能帮我怎么做吗? 感谢
详细博客:http://sforsuresh.in/wordpress-creating-custom-widget-area/ –