Displaying categories with no post in IE9

Discussion in 'Figero WordPress Theme' started by sworldconsult, Feb 23, 2013.

Thread Status:
Not open for further replies.
  1. sworldconsult

    sworldconsult Member

    Joined:
    Dec 28, 2012
    Messages:
    33
    Likes Received:
    0
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Go to the category.php file present in the theme directory( Theme directory ->category.php ), and remove all the code code from categories.php file and then paste the code given below in the category.php file.
    Code:
    <?php /**
    * The template for displaying Category pages.
    *
    */ ?>
    <?php get_header(); ?>
    <!--contact content start-->
    <div class="page-info-container">
        <div class="container_24">
            <div class="grid_24">
                <div class="page_info">         
                        <?php if (function_exists('inkthemes_breadcrumbs'))
                            inkthemes_breadcrumbs(); ?>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <div class="strip_line"></div>
        <div class="content-container">
            <div class="container_24">
                <div class="grid_24">
                    <div class="content-main">
                        <div class="grid_16 alpha">
                            <!--Start content Wrapper-->
                            <div class="content-wrapper">
                            <?php if (have_posts()) : ?>
                                <?php
                                $category_description = category_description();
                                if (!empty($category_description))
                                    echo '' . $category_description . '';
                                /* Run the loop for the category page to output the posts.
                                * If you want to overload this in a child theme then include a file
                                * called loop-category.php and that will be used instead.
                                */
                                ?>
                                <?php get_template_part('loop', 'category'); ?>
                                <div class="clear"></div>
                                <nav id="nav-single"> <span class="nav-previous">
                                        <?php next_posts_link(__('&larr; Older posts', 'figero')); ?>
                                    </span> <span class="nav-next">
                                        <?php previous_posts_link(__('Newer posts &rarr;', 'figero')); ?>
                                    </span> </nav>
                            <?php endif; ?>
                            </div>                   
                      <!--End content Wrapper-->
                        </div>         
                    <!--Start Sidebar-->
                    <?php get_sidebar(); ?>
                    <!--End Sidebar-->
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <!--contact content end-->
    <?php get_footer(); ?>
    

    For the reference see the image given below.
    [​IMG]

    This will solve your issue.
     
  3. sworldconsult

    sworldconsult Member

    Joined:
    Dec 28, 2012
    Messages:
    33
    Likes Received:
    0
    It worked. This looks great!
    Thanks.
     
Thread Status:
Not open for further replies.

Share This Page