WP-Ecommerce的不同侧边栏

时间:2013-11-27 13:33:10

标签: php wordpress e-commerce sidebar

我有一个关于wp-ecommerce的博客,现在我想要的是使用单独的侧边栏到商店页面,但WP-Ecommerce似乎拉你的模板侧边栏,但无法找到如何指定侧边栏使用

我在我的functions.php中创建了一个新的侧边栏,只是不知道在哪里调用它......

任何帮助非常感谢

由于 乔

1 个答案:

答案 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');
}
相关问题