wrapping a complicated structure / sidebar for jigoshop (1 post)

  1. dyyyb
    Posted 3 years ago #


    I have Lugada theme and installed Jigoshop. Everything went fine except of course wrapping the content.

    Now i wrapped the whole shop and products content with:

    function mytheme_open_jigoshop_content_wrappers()
        echo '<div class="container contentarea"><div class="row"><div class="column-content"><div id="content" role="main">';
    function mytheme_close_jigoshop_content_wrappers()
        echo '</div></div></div></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' );

    But it only wraps 4 div's. I have to wrap another div that is inside those 4 div's with this function.

    That's what i have to wrap:

    <div class="container contentarea">
    		<div class="row">
    			<div class="column-content">
    				<div id="content" role="main">
    					<?php while ( have_posts() ) : the_post(); ?>
    						<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope itemtype="http://schema.org/WebPage">
    							<header class="entry-header">
    								<h1 class="entry-title" itemprop="name"><?php the_title(); ?></h1>
    							<div class="entry-content" itemprop="description">
    								<?php the_content(); ?>
    								<div class="clearfix"></div>
    								<?php wp_link_pages( array('before' => '<div class="page-link"> <span> Pages: </span>', 'after' => '</div>')); ?>
    							<footer class="entry-meta">
    								<?php edit_post_link( __( 'Edit', 'newzeo' ), '<span class="edit-link">', '</span>' ); ?>
    						</article><!-- #post-<?php the_ID(); ?> -->
    						<?php comments_template( '', true ); ?>
    					<?php endwhile; ?>
    				</div> <!-- #content -->
    			</div> <!-- .column-content -->
    			<strong><div class="column-sidebar nomargin">
    				<?php get_sidebar(); ?>

    Is this possible?
    I know the problem is only with Jigoshop SHOP and PRODUCTS site'. Everything that's pure Lugada Theme works like a charm and the sidebar widget are ok. Jigoshop is viewing under the content like this:

    <div class="container contentarea">
    <div class="row">
    <div class="column-content">
    <div id="content" role="main">
    <div id="breadcrumb">
    <a class="home" href="http://localhost/shop">Home</a>
    <a href="http://localhost/shop/?post_type=product">Shop</a>
    <h1 class="page-title">Wszystkie produkty</h1>
    <ul class="products">
    <div class="clear"></div>
    <aside id="jigoshop_cart-5" class="widget clearfix jigoshop_cart">

Topic Closed

This topic has been closed to new replies.

About this Topic