1
我想让jigoshop把所有东西放在我的主容器中,它看起来不起作用。Jigoshop造型问题
我的模板是下面:
<?php get_header(); ?>
<div id="productsidebar"><?php get_sidebar('products'); ?></div>
<div id="contentwrap">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
</div><!-- #content -->
<?php get_footer(); ?>
,我有这在我的函数文件按照Jigoshops更换主题皮肤(http://forum.jigoshop.com/kb/customize-jigoshop/wrap-your-themes-content-for-jigoshop)
function mytheme_open_jigoshop_content_wrappers()
{
echo '<div id="productsidebar"></div><div id="contentwrap">';
}
function mytheme_close_jigoshop_content_wrappers()
{
echo '</div>';
}
function mytheme_prepare_jigoshop_wrappers()
{
remove_action('jigoshop_before_main_content', 'jigoshop_output_content_wrapper', 10);
remove_action('jigoshop_after_main_content', 'jigoshop_output_content_wrapper_end', 10);
add_action('jigoshop_before_main_content', 'mytheme_open_jigoshop_content_wrappers', 10);
add_action('jigoshop_after_main_content', 'mytheme_close_jigoshop_content_wrappers', 10);
}
add_action('wp_head', 'mytheme_prepare_jigoshop_wrappers');
当我在把工具条功能显然这是示数功能文件。
任何人都可以建议如何做到最好?
网站是http://upholstery180degree.co.uk/NewSite/
感谢
嗨罗伯托,我使用默认模板?我刚刚检查过:S – 2013-02-28 10:13:08
所有使用默认模板的页面?某物正在调用<?php get_sidebar(); ?>在您的产品页面中。这很可能是一个模板或您正在使用的页面。 – 2013-02-28 10:14:21
嗨罗伯特,是的,他们是 – 2013-02-28 10:16:55