WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: BuddyPress Template Pack] Step 3 - fixing alignment - docs dont match templates (2 posts)

  1. OliZilla
    Member
    Posted 4 years ago #

    Got to step 3 of the BP Compatibility wizard, where it states:

    Fixing Alignment

    By default BuddyPress templates use this HTML structure:

    [HEADER]

    <div id="container">
    <div id="content">
    [PAGE CONTENT]
    </div>

    <div id="sidebar">
    [SIDEBAR CONTENT]
    </div>
    </div>

    [FOOTER]

    But when I look at the any of the templates that the plugin added to my theme I see:

    ...
    		</div><!-- #content -->
    	</div><!-- #container -->
    
    	<?php locate_template( array( 'sidebar.php' ), true ) ?>
    
    <?php get_footer() ?>
    ...

    (taken from activity/index.php)

    So that produces markup like:

    [HEADER]

    <div id="container">
    <div id="content">
    [PAGE CONTENT]
    </div>
    </div>
    <div id="sidebar">
    [SIDEBAR CONTENT]
    </div>

    [FOOTER]

    which puts the sidebar outside the container div.

    Is the documentation in wizard wrong? or the templates? or my eyes?

    Thanks for the plugin anyhow, its really useful!

    http://wordpress.org/extend/plugins/bp-template-pack/

  2. sow
    Member
    Posted 4 years ago #

    I've been confused by this too so I'm no expert....but, I think you have your markup wrong.

    The example shows:

    [PAGE CONTENT]
    </div>
    <div id="sidebar">
    [SIDEBAR CONTENT]
    </div>
    </div>
    [FOOTER]

    In other words div container finishes after [SIDEBAR] - your mark up has (as you correctly say) div container finishing before SIDEBAR.

    Cheers

    Will

Topic Closed

This topic has been closed to new replies.

About this Topic