Forums

Join
bbPress Support ForumsThemesHere's how to use bbPress outside the bbPress directory

Info

Here's how to use bbPress outside the bbPress directory

  1. You might want to create a static page outside of your bbPress installation that still uses the matching header and footer you have in bbPress. Well it's very easy.

    Make yourself a directory above bbPress with any name you'd like, let's say "/about/"

    In "/about/" make an index.php with this content:

    <?php
    require('../forums/bb-load.php');    // change /forums/ to your actual forum path
    add_action('bb_head','about_css');
    include(bb_get_active_theme_uri()."header.php"); 
    
    function about_css() {   //  put any custom CSS you want in here
    echo '<style>
    img {border:0;}
    </style>';
    }
    ?>
    
    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> &raquo; About</h3>
    
    <h2>About</h2>
    
    Your "about" text goes here!
    
    <?php  include(bb_get_active_theme_uri()."/footer.php"); ?>
  2. You could pretty much make a codex out of your plugins and tips _ck_ :) Another great one!

  3. You must log in to post.