Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide subforums on homepage


  • phaniraj01
    Member

    @phaniraj01

    Dear All,

    I am using default Kakumei Blue 1.0 theme, I need to hide subforums from the home page of the forum.

    Is there any plugin available?

    Thanks,

    phani

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

  • Olaf Lederer
    Member

    @finalwebsites

    search the forum, there are several post about this question

    i’ve already tried, all it did was send subforums to the bottom of the list, but not hide them altogether.

    Why not edit your front page to exclude them via your theme?


    phaniraj01
    Member

    @phaniraj01

    please give me the code to edit..

    I have no programing experience.

    thanks,

    phani


    Rohan Kapoor
    Member

    @rohan_kapoor

    Go to your theme folder, find the theme. Edit front-page.php:

    Remove the following:

    <?php if ( bb_forums() ) : ?>
    <h2><?php _e('Forums'); ?></h2>
    <table id="forumlist">

    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>


    Olaf Lederer
    Member

    @finalwebsites

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

You must be logged in to reply to this topic.