只是想知道有没有可能在侧边栏中的第一个小部件之后添加HTML代码,以便在添加第二个或第三个小部件后只显示一次而不重复?
这就是我目前的情况:
if (function_exists(\'register_sidebar\')) {
register_sidebar(array(
\'id\' => \'sidebar2\',
\'name\' => __(\'Sidebar 2\'),
\'description\' => __(\'The Second sidebar (Magazine link).\'),
\'before_widget\' => \'<div id="%1$s" class="widget %2$s">\',
\'after_widget\' => \'</div><div class"content">Here only once</div>\',
\'before_title\' => \'<h4 class="widgettitle">\',
\'after_title\' => \'</h4>\',
));
}
谢谢