Skip to:
Content
Pages
Categories
Search
Top
Bottom

Here’s how to use bbPress outside the bbPress directory

  • @_ck_

    Participant

    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"); ?>

Viewing 1 replies (of 1 total)
  • @trent

    Member

    You could pretty much make a codex out of your plugins and tips _ck_ :) Another great one!

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