Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @ibrahima,

    Thanks for posting on the forum.

    To display the sidebar on category pages on twenty eleven theme create a page template file page.php in your child theme and add the following code in it.

    <?php
    /**
     * Template for displaying all pages
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0
     */
    
    get_header(); ?>
    
    		<div id="primary">
    			<div id="content" role="main">
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', 'page' ); ?>
    
    					<?php comments_template( '', true ); ?>
    
    				<?php endwhile; // end of the loop. ?>
    
    			</div><!-- #content -->
    		</div><!-- #primary -->
    <?php  if ( get_post_type() == 'product') { get_sidebar(); } ?>
    <?php get_footer(); ?>

    Also add the following CSS code in the style.css file of your child theme or add it in your site using the following plugin.

    http://wordpress.org/plugins/simple-custom-css

    body.tax-product_category.singular #primary {
    	margin: 0 -26.4% 0 0;
    }
    body.tax-product_category.singular #content{
    	margin: 0 34% 0 7.6%;
    	width: 58.4%;
    }

    Best Regards,
    Vinod Dalvi

    Thread Starter ibrahima fall

    (@ibrahima-fall)

    Thank you Vinod, it worked just right.

    Thread Starter ibrahima fall

    (@ibrahima-fall)

    Hello. We had hosting issue and had to fresh upload our original site running marketpress lite on the twenty eleven theme since the last issue. With new wordpress updates and no more child theme our sidebar has disappeared again on the product category pages. Here is an example product category page without sidebar: http://www.bottlegourdherbs.com/marketplace/products/category/loose-herbal-teas/ The above solution from last update no longer corrects this issue – will another CSS do the trick? Thank you in advance for your important help!

    Thread Starter ibrahima fall

    (@ibrahima-fall)

    Please help, thank you.

    I have the same issue on our site. On all posts the sidebar appears in the blog but NOT in categories. How do I fix that on the “Bible Studies” and “Blog” categories at http://www.plantingroots.net ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘sidebar missing on category pages (twenty eleven theme)’ is closed to new replies.