Tweaking the layout – what is my structure?
-
Hello everybody,
So I am currently trying to make my wordpress theme compatible with Buddypress, and the “tweaking the layout” section is causing some troubles. I can’t seem to figure out how to fix the alignment. It says in the tutorials, that I should change the HTML structure selected BuddyPress template files to match the structure of your WP theme’s page.php or index.php file.
I am having trouble with finding the structure – it does not look quite right on my site. Can somebody help my figure out my HTML structure in the following, and how I should insert these in my buddypress files?
<?php
/*
Template Name: Page with sidebar
*/
?><?php get_header(); ?>
<div class = "outerpagewrap">
<div class="pagewrap">
<div class="pagecontent">
<div class="pagecontentContent">
<h1><?php the_title();?></h1>
<p><?php the_breadcrumb(); ?></p>
</div>
<div class="homeIcon">"></div>
</div></div>
</div><div id="mainwrap">
<div id="main" class="clearfix">
<div class="pad"></div>
<div class="content pagesidebar">
<div class="postcontent">
<div class="posttext">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?><div class="usercontent"><?php the_content('<p class="serif">Read the rest of this page »</p>'); ?></div>
<?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php endwhile; endif; ?>
</div>
<div>
<h3 class="titleborderh"><?php echo stripText($data['translation_share_page']) ?></h3>
<div class="titleborder"></div>
</div>
<div class="socialsingle"><?php socialLinkCat(get_permalink(),get_the_title(),false) ?></div>
</div>
</div>
<?php get_sidebar(); ?>
</div>
</div><?php get_footer(); ?>
I am using the bp-compatible plugin.
- The topic ‘Tweaking the layout – what is my structure?’ is closed to new replies.