Here’s how to use bbPress outside the bbPress directory
-
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> » 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)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.