我有一个关于wp-ecommerce的博客,现在我想要的是使用单独的侧边栏到商店页面,但WP-Ecommerce似乎拉你的模板侧边栏,但无法找到如何指定侧边栏使用
我在我的functions.php中创建了一个新的侧边栏,只是不知道在哪里调用它......
任何帮助非常感谢
由于 乔
答案 0 :(得分:0)
As you have created a separate sidebar, now you must be seeing that in your admin panel.
So just add the widgets you want to appear in the sidebar.
Next go to your sidebar.php page, there you cana put a condition i.e. for the products page
If your products page is a separate template then use the name of the file i.e.
if ( is_page_template('product.php') ) {
register_sidebr('name of the sidebar');
} else {
register_sidebr('name of the sidebar');
}