Skip to:
Content
Pages
Categories
Search
Top
Bottom

Online Magazine Theme


  • Topknotch
    Participant

    @topknotch

    Hi,
    I have recently installed bbpress and I am using this theme – http://fthemes.com/onlinemagazine-free-wordpress-theme/ it is installed here -http://chill4uscarers.co.uk/ the theme works well for the front end , but on the forum as shown here http://chill4uscarers.co.uk/forumtest/ it doesn’t as it wants 2 sidebars and I only want to show one that is the bbpress sidebar with the widgets.
    I have got installed bbPress WP Tweaks so I really want to know how to make the one of the forums php work with only one sidebar that is only the bbpress one.
    Many thanks in advance.
    Ross

Viewing 14 replies - 1 through 14 (of 14 total)

  • Robin W
    Moderator

    @robin-w

    yes, you will need to rename one of your theme pages (the one that has only one sidebar) to bbpress.php and put it into your theme

    Step by step guide to setting up a bbPress forum – Part 1


    Topknotch
    Participant

    @topknotch

    That’s the problem the theme only has the main index.php and another nor that is full width it doesn’t have one with just one sidebar
    Thanks


    Topknotch
    Participant

    @topknotch

    anyone able to help me with this ? 🙁


    Robin W
    Moderator

    @robin-w

    can you post the code for the full width one here please


    Topknotch
    Participant

    @topknotch

    Thanks Robin

    <?php
    
    /**
    
     * Template Name: Full Width, no sidebar(s)
    
    */
    
    get_header(); ?>
    
        <div id="main-fullwidth">
    
            
    
            <?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; 
    
            ?>
    
            
    
        </div><!-- #main-fullwidth -->
    
        
    
    <?php get_footer(); ?>

    Robin W
    Moderator

    @robin-w

    ok, save this file as bbpress.php into the root of your theme

    ie

    wp-content/themes/%yourthemename%/bbpress.php

    where %yourthemename% is the name of your theme !! 🙂

    Then add a line above the last, so that it now reads

    <? get_sidebar(); ?>
    <?php get_footer(); ?>

    bbpress will now use that page as the one for bbpress, and should display a sidebar.

    ‘tweaks’ should tghen sue this fro your forum sidebar.

    Come back if any of that doesn’t work, or you need more explanation


    Topknotch
    Participant

    @topknotch

    Hi Robin
    Thanks for getting back, I have done as you suggested however it didnt work – if you look at http://chill4uscarers.co.uk/forumtest/ you can see what I mean


    Topknotch
    Participant

    @topknotch

    all i want is the bbpress sidebar like the image
    bbpress sidebar


    Robin W
    Moderator

    @robin-w

    sorry…

    <? get_sidebar(); ?>
    

    should read

    <?php get_sidebar(); ?>


    Topknotch
    Participant

    @topknotch

    Still doesn’t work 🙁 this is driving me mad I have been trying it all day and when you re posted I thought woooohooooo , but sadly no 🙁
    This is my code –

    <?php
    
    /**
    
     * Template Name: Full Width, no sidebar(s)
    
    */
    
    get_header(); ?>
    
        <div id="main-fullwidth">
    
            
    
            <?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; 
    
            ?>
    
            
    
        </div><!-- #main-fullwidth -->
    
        
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Topknotch
    Participant

    @topknotch

    oh and I have moved it to a test site – http://topknotch-solutions.co.uk/test/forums/


    Robin W
    Moderator

    @robin-w

    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


    Topknotch
    Participant

    @topknotch

    Brilliant worked a treat !! Now to move all smf posts to bbpress 🙁
    thanks Robin for all your help


    Robin W
    Moderator

    @robin-w

    Great – I do hate that them authors won’t write variants of themes for no-sidebar/1 sidebar/2 sidebar, it would make life so much easier 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Skip to toolbar