Hide subforums on homepage
-
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)
-
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?
please give me the code to edit..
I have no programing experience.
thanks,
phani
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() ?>I do it with a similar function:
http://www.finalwebsites.com/forums/topic/how-to-hide-sub-forums-on-the-main-page
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.