WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dyyyb
    Member
    Posted 1 year ago #

    Hi!

    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>
    							</header>
    
    							<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>')); ?>
    							</div>
    
    							<footer class="entry-meta">
    								<?php edit_post_link( __( 'Edit', 'newzeo' ), '<span class="edit-link">', '</span>' ); ?>
    							</footer>
    
    						</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(); ?>
    			</div></strong>
    
    		</div>
    	</div>

    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>
    &rsaquo;
    <a href="http://localhost/shop/?post_type=product">Shop</a>
    </div>
    <h1 class="page-title">Wszystkie produkty</h1>
    <ul class="products">
    <div class="clear"></div>
    </div>
    </div>
    </div>
    </div>
    <aside id="jigoshop_cart-5" class="widget clearfix jigoshop_cart">

Topic Closed

This topic has been closed to new replies.

About this Topic