J'essaye d'obtenir le jigoshop pour mettre tout dans mon récipient principal et il semble ne pas fonctionner.Jigoshop Styling Édition
Mon modèle est ci-dessous:
<?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(); ?>
Et j'ai dans mes fonctions fichier comme par Jigoshops themeing (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');
Il était évidemment erroring quand je mets la fonction de barre latérale dans la fichier de fonctions.
Quelqu'un peut-il vous conseiller sur la meilleure façon de procéder?
site est http://upholstery180degree.co.uk/NewSite/
grâce
Salut Roberto, j'utilise le modèle par défaut? Je viens de vérifier: S –
Toutes vos pages en utilisant le modèle par défaut? Quelque chose appelle le Php get_sidebar(); ?> dans votre page de produit. Il s'agit probablement d'un modèle ou de la page que vous utilisez. –
salut robert, oui ils sont –