jamesajohnson
asked 11 years ago

Hi Guys.

So I love your theme, we are using it with great success.

Just a quick questions. I want the frontpage to look like a category page. So all new posts can be defaulted to a “GRID” with List option.

I would like if I could keep the featured slider at the top though.

Is there a simple way to maybe make a widget I can add to Homepage Content that would feed in all recent stories in the same output look as a category Grid page.

2 Answers
DominicStaff
answered 11 years ago

Thanks for posting this issue! Unfortunately, I’m afraid it would not be possible to support you for this customization. Our theme does not support your request yet at the moment.

Manuel Cornejo
replied 10 years ago

Pleaase implement it !

DominicStaff
answered 10 years ago

To make the Homepage look like a category page in the DW Focus theme. Please open the index.php file. Remove all the code in this file then add the following code.


<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://code class="prettyprint"x.wordpress.org/Template_Hierarchy
 *
 * @package DW Focus
 * @since DW Focus 1.0
 */
get_header(); ?>
    <div id="primary" class"site content span9">
        <?php if ( have_posts() ) : ?>
            <?php dynamic_sidebar('dw_focus_home'); ?>
            <div class="archive">
            <div class="content-inner layout-grid">
                <?php global $archive_i; $archive_i = 1 ?>
                <?php while ( have_posts() ) : the_post(); ?>
                    <?php get_template_part( 'content', 'archive' ); ?>
                    <?php $archive_i++; ?>
                <?php endwhile; ?>
            </div>
            <?php dw_focus_pagenavi(); ?>
            </div>
        <?php else : ?>
            <?php get_template_part( 'no-results', 'archive' ); ?>
        <?php endif; ?>
    </div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Powered by DW Question & Answer Pro