【发布时间】:2013-12-13 23:24:41
【问题描述】:
我在我的一个客户站点中安装了 woocommerce 插件,它与 woocommerce 不兼容,因此我进行了所有必需的配置,如下所示:
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);
function my_theme_wrapper_start() {
echo '<td id="content" class="narrowcolumn">';
}
function my_theme_wrapper_end() {
echo '</td>';
}
add_theme_support( 'woocommerce' );
但是 Woocommerce.css 仍然没有应用于我的产品页面是元素,并且结帐按钮也没有出现。
这是页面的链接:
http://www.doctor-detail.com/product/gift-card-product-2
任何帮助将不胜感激!
【问题讨论】:
标签: javascript php wordpress wordpress-theming woocommerce