Php Jigoshop样式问题

Php Jigoshop样式问题,php,wordpress,wordpress-theming,jigoshop,Php,Wordpress,Wordpress Theming,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();

我试图让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 &raquo;</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主题()

函数mytheme\u open\u jigoshop\u content\u wrappers()
{
回声';
}
函数mysteme_close_jigoshop_content_wrappers()
{
回声';
}
函数mytheme_prepare_jigoshop_wrappers()
{
删除操作('jigoshop_在主内容之前','jigoshop_输出内容包装',10);
删除操作('jigoshop'u在主内容之后,'jigoshop'u输出内容'u包装结束',10);
添加动作('jigoshop'u在主内容之前,'mysteme'u打开,'jigoshop'u内容包装器',10);
添加动作('jigoshop'u在主内容之后,'mysteme'u关闭'jigoshop'u内容包装器',10);
}
添加行动(“wp_头”、“mytheme_准备_jigoshop_包装纸”);
当我把边栏函数放在函数文件中时,显然是出错了

有人能建议如何最好地做到这一点吗

网站是


谢谢

在分析代码后,您的函数将按照指定将产品页面放入主容器中

<div id="contentwrap">
    <ul class="products">
    <li class="product first">

尽管看起来你正在使用一个不同的模板来显示你网站上的小部件。您的代码工作正常,我会进入您的产品页面,更改它使用的模板类型,并使其与其他页面相同。另外,您不需要边栏div信息,因为它不是主包装的一部分

function mytheme_open_jigoshop_content_wrappers()
{
    echo '<div id="contentwrap">';
}

function mytheme_close_jigoshop_content_wrappers()
{
    echo '</div>';
}
函数mytheme\u open\u jigoshop\u content\u wrappers()
{
回声';
}
函数mysteme_close_jigoshop_content_wrappers()
{
回声';
}

Hi Roberto,我正在使用默认模板?我刚刚检查了:你的所有页面都使用默认模板了吗?在您的产品页面中,有东西正在调用。这很可能是一个模板或你正在使用的页面。我刚刚添加了两个页面,当然,第一个选项是qusetion中的页面。正如你所看到的,它仍然坐在它外面:请详细说明你坐在它外面是什么意思?嗨,罗伯特,这是因为我用的是我自己的主题,所以我需要把我的主题弄错
function mytheme_open_jigoshop_content_wrappers()
{
    echo '<div id="contentwrap">';
}

function mytheme_close_jigoshop_content_wrappers()
{
    echo '</div>';
}