Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to solve the problem of alignment in practice?


modemlooper
Moderator

@modemlooper

I actually have this theme and looked at it and its so easy to convert. I think most of you are over thinking the process.

Here is the top of the BP forum index page looks like

<?php get_header() ?>

<?php do_action( 'bp_before_directory_forums_content' ) ?>

<div id="container">
<div id="content">

See the container and content? these need to match your theme exactly. On your theme it looks like this:

<?php get_header() ?>

<div id="content" class="col-full">
<div id="main" class="col-left">

So to fix it you need to merge these into this:

<?php get_header() ?>

<?php do_action( 'bp_before_directory_forums_content' ) ?>

<div id="content" class="col-full">
<div id="main" class="col-left">

You must do this with the bottom of the page code as well so the footer and sidebar code matches up.

BP forum index page bottom code:

</div><!-- #content -->
</div><!-- #container -->

<?php locate_template( array( 'sidebar.php' ), true ) ?>

<?php get_footer() ?>

Your theme code:

</div><!-- /#main -->

<?php get_sidebar(); ?>

</div><!-- /#content -->

<?php get_footer(); ?>

Skip to toolbar