Quantcast
Channel: bbPress.org » All Posts
Viewing all articles
Browse latest Browse all 3638

Reply To: Online Magazine Theme

$
0
0

ok, I downloaded the theme and had a play

you need to create this file as bbpress.php

<?php global $theme; get_header(); ?>

    <div id="main">

        <?php $theme->hook('main_before'); ?>

        <div id="content2">

            <?php $theme->hook('content_before'); ?>

            <?php
                if (have_posts()) : while (have_posts()) : the_post();
                    /**
                     * Find the post formatting for the pages in the post-page.php file
                     */
                    get_template_part('post', 'page');

                    if(comments_open( get_the_ID() ))  {
                        comments_template('', true);
                    }
                endwhile;

                else :
                    get_template_part('post', 'noresults');
                endif;
            ?>

            <?php $theme->hook('content_after'); ?>

        </div><!-- #content -->

        <div id="sidebar-primary">

   <?php
        if(!dynamic_sidebar('sidebar-bbpress')) {
            /**
            * The primary sidebar widget area. Manage the widgets from: wp-admin -> Appearance -> Widgets
            */
            $theme->hook('sidebar-bbpress');
        }
        $theme->hook("sidebar_primary_after");
    ?>

</div><!-- #sidebar-primary -->

        <?php $theme->hook('main_after'); ?>

    </div><!-- #main -->

<?php get_footer(); ?>

Then in your style.css you need to add the following to the bottom just above the

/* =END

#content2 {
  float: left;
  overflow: hidden;
  width: 630px;
}

That should do it


Viewing all articles
Browse latest Browse all 3638

Trending Articles