WordPress.org

Forums

WooCommerce - excelling eCommerce
wrong sidebar is displayed on shop page (9 posts)

  1. Sciencefiction68
    Member
    Posted 2 years ago #

    Hi. I just installed your plugin and loved it. The problem is only default right sidebar is shown on right where i want to display a custom sidebar with woocommers widgets. im able to change every other non wc page sidebars by simply changing settings in page edit mode. How to acomplish this? Im not a coder. Spent about 3 hours trying to implement the only source i could find to fix this problem:S

    http://wordpress.stackexchange.com/questions/73262/incorrect-sidebar-showing-on-woocommerce-store-page

    No luck so far:S can anybody help please? Thanx in advance

    http://wordpress.org/extend/plugins/woocommerce/

  2. jameskoster
    Member
    Plugin Author

    Posted 2 years ago #

    Easiest way to do this would be using our WooSidebars plugin; http://wordpress.org/plugins/woosidebars/

  3. Sciencefiction68
    Member
    Posted 2 years ago #

    i tried it but its not working:S It can change every other page but not the shop pages:S

  4. Sciencefiction68
    Member
    Posted 2 years ago #

    there are plenty of same issues and no exact solution. most of the time the only suggestion is to use woosidebars which doesnt solve the problem. Another way is supposed to be adding a woocommerce.php file to my existing theme and tell plugin to use desired sidebar. But im not a coder so dont have a single clue how to do that:S .I hope you as a plugin author can find a right solution to it. thanx in advance again:)

  5. Sciencefiction68
    Member
    Posted 2 years ago #

    Im using Buddy theme from theme forest. This is my page.php file. I copied it and renamed to woocommerce.php. to what part should i insert <?php woocommerce_content(); ?>

    ??

    <?php get_header(); global $gp_settings; ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<!-- BEGIN CONTENT -->
    
    	<div id="content">
    
    		<!-- BEGIN IMAGE -->
    
    		<?php if(has_post_thumbnail() && $gp_settings['image_wrap'] == "Disable" && $gp_settings['show_image'] == "Show") { ?>
    			<div class="post-thumbnail single-thumbnail">
    				<?php $image = aq_resize(wp_get_attachment_url(get_post_thumbnail_id($post->ID)),  $gp_settings['image_width'], $gp_settings['image_height'], true, true); ?>
    				<?php if(get_option($dirname."_retina") == "0") { $retina = aq_resize(wp_get_attachment_url(get_post_thumbnail_id($post->ID)),  $gp_settings['image_width']*2, $gp_settings['image_height']*2, true, true); } else { $retina = ""; } ?>
    				<img src="<?php echo $image; ?>" data-rel="<?php echo $retina; ?>" style="width: <?php echo $gp_settings['image_width']; ?>px;<?php if($gp_settings['hard_crop'] == "Enable") { ?> height: <?php echo $gp_settings['image_height']; ?>px;<?php } ?>" alt="<?php if(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); } else { echo get_the_title(); } ?>" />
    			</div>
    		<?php } ?>
    
    		<!-- END IMAGE -->
    
    		<!-- BEGIN PADDER -->
    
    		<div class="padder<?php if(has_post_thumbnail() && $gp_settings['image_wrap'] == "Disable" && $gp_settings['show_image'] == "Show") { ?> content-post-thumbnail<?php } ?>">
    
    			<!-- BEGIN TITLE -->
    
    			<?php if($gp_settings['title'] == "Show") { ?><h1 class="page-title"><?php the_title(); ?></h1><?php } ?>
    
    			<!-- END TITLE -->
    
    			<!-- BEGIN POST META -->
    
    			<?php if($gp_settings['meta_date'] == "0" OR $gp_settings['meta_author'] == "0" OR $gp_settings['meta_cats'] == "0" OR $gp_settings['meta_comments'] == "0") { ?>
    
    				<div class="post-meta">
    
    					<?php if($gp_settings['meta_author'] == "0") { ?><span><i class="icon-user"></i><a href="<?php echo get_author_posts_url($post->post_author); ?>"><?php the_author_meta('display_name', $post->post_author); ?></a></span><?php } ?>
    
    					<?php if($gp_settings['meta_date'] == "0") { ?><span><i class="icon-calendar"></i><?php the_time(get_option('date_format')); ?></span><?php } ?>
    
    					<?php if($gp_settings['meta_cats'] == "0" && $post->post_type == "post") { ?><span><i class="icon-folder-open"></i><?php the_category(', '); ?></span><?php } ?>
    
    					<?php if($gp_settings['meta_comments'] == "0" && 'open' == $post->comment_status) { ?><span><i class="icon-comments"></i><?php comments_popup_link(__('0', 'gp_lang'), __('1', 'gp_lang'), __('%', 'gp_lang'), 'comments-link', ''); ?></span><?php } ?>
    
    				</div>
    
    			<?php } ?>
    
    			<!-- END POST META -->
    
    			<!-- BEGIN POST CONTENT -->
    
    			<?php if($post->post_content) { ?>	
    
    				<div id="post-content">
    
    					<!-- BEGIN IMAGE -->
    
    					<?php if(has_post_thumbnail() && $gp_settings['image_wrap'] == "Enable" && $gp_settings['show_image'] == "Show") { ?>
    						<div class="post-thumbnail wrap">
    							<?php $image = aq_resize(wp_get_attachment_url(get_post_thumbnail_id($post->ID)),  $gp_settings['image_width'], $gp_settings['image_height'], true, true); ?>
    							<?php if(get_option($dirname."_retina") == "0") { $retina = aq_resize(wp_get_attachment_url(get_post_thumbnail_id($post->ID)),  $gp_settings['image_width']*2, $gp_settings['image_height']*2, true, true); } else { $retina = ""; } ?>
    							<img src="<?php echo $image; ?>" data-rel="<?php echo $retina; ?>" style="width: <?php echo $gp_settings['image_width']; ?>px;<?php if($gp_settings['hard_crop'] == "Enable") { ?> height: <?php echo $gp_settings['image_height']; ?>px;<?php } ?>" alt="<?php if(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); } else { echo get_the_title(); } ?>" />
    						</div>
    					<?php } ?>
    
    					<!-- END IMAGE -->
    
    					<?php the_content(__('Read More &raquo;', 'gp_lang')); ?>
    
    				</div>
    
    			<?php } else { ?>
    
    				<?PHP the_content(__('Read More &raquo;', 'gp_lang')); ?>
    
    			<?php } ?>
    
    			<!-- END POST CONTENT -->
    
    			<!-- BEGIN POST NAV -->
    
    			<?php wp_link_pages('before=<div class="clear"></div><div class="wp-pagenavi post-navi">&pagelink=<span>%</span>&after=</div>'); ?>		
    
    			<!-- END POST NAV -->
    
    			<!-- BEGIN AUTHOR INFO PANEL -->
    
    			<?php if($gp_settings['author_info'] == "0") { ?><?php echo do_shortcode('[author]'); ?><?php } ?>
    
    			<!-- END AUTHOR INFO PANEL -->
    
    			<!-- BEGIN COMMENTS -->
    
    			<?php comments_template(); ?>
    
    			<!-- END COMMENTS -->
    
    			<div class="clear"></div>
    
    		</div>
    
    		<!-- END PADDER -->
    
    	</div>
    
    	<!-- END CONTENT -->
    
    <?php endwhile; endif; ?>
    
    <?php get_footer(); ?>
  6. Sciencefiction68
    Member
    Posted 2 years ago #

    no help?:(

  7. vrushank
    Member
    Posted 1 year ago #

    Did you get any solution to this?

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    @vrushank: If you require assistance then, as per the Forum Welcome, please post your own topic.

  9. glen73
    Member
    Posted 1 year ago #

    frustrating. This is an obvious problem, well asked on various posts and no solution to be found. Not everyone is a hard core coder. The main purpose of these forums is so the average user can get solutions. Why do these posts get closed without solutions or the experts say "put that here, then there without clarity? This is a mainstream, obvious question. Please can someone supply an answer clearly and concisely?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic