InStyle Theme v2.7, Elegant Themes

STEP 3 of the BuddyPress Template Pack plugin compatibility process.

Based on the HTML structure of your theme, you need to change 17 template files within the 6 BP folders transferred to your instyle theme folder in server during the compatibility process.

Since you’ve revised the BP template files, replace all of them for a clean slate by deleting the 6 BP folders transferred to your theme’s folder in server during the compatibility process -> /activity, /blogs, /forums, /groups, /members, and /registration – then re-run dashboard Appearance > BP Compatibility.

Download the 6 clean BP folders to your computer hard drive.

A. At the top of each of those 17 template files I linked to above, replace

<?php get_header( 'buddypress' ); ?>
<?php do_action( '//DIFFERENT HOOKS' ); ?>
<div id="content">
<div class="padder">

with the following:

<?php get_header(); ?>
<?php get_template_part('includes/top_info'); ?>
<div id="content-top"></div>
<div id="content" class="clearfix">
<div id="content-area">
<?php get_template_part('includes/breadcrumbs'); ?>
<?php if (get_option('instyle_integration_single_top') <> '' && get_option('instyle_integrate_singletop_enable') == 'on') echo(get_option('instyle_integration_single_top')); ?>
<div class="entry clearfix post">

Save files.

B. At the bottom of the same 17 files, replace:

</div><!-- .padder -->
</div><!-- #content -->
<?php do_action( '//DIFFERENT HOOKS' ); ?>
<?php get_sidebar( 'buddypress' ); ?>
<?php get_footer( 'buddypress' ); ?>

with the following (except for registration/register.php):

</div>
<?php if (get_option('instyle_integration_single_bottom') <> '' && get_option('instyle_integrate_singlebottom_enable') == 'on') echo(get_option('instyle_integration_single_bottom')); ?>		
</div>
<?php get_sidebar(); ?>
</div>
<div id="content-bottom"></div>
<div class="clear"></div>
<?php endwhile; endif; ?>
<?php get_footer(); ?>

with the following for registration/register.php:

</div>
<?php if (get_option('instyle_integration_single_bottom') <> '' && get_option('instyle_integrate_singlebottom_enable') == 'on') echo(get_option('instyle_integration_single_bottom')); ?>		
</div>
<?php get_sidebar(); ?>
<script type="text/javascript">
jQuery(document).ready( function() {
if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
jQuery('div#blog-details').toggle();
jQuery( 'input#signup_with_blog' ).click( function() {
jQuery('div#blog-details').fadeOut().toggle();
});
});
</script>
</div>
<div id="content-bottom"></div>
<div class="clear"></div>
<?php endwhile; endif; ?>
<?php get_footer(); ?>

Save files.

C. Upload the 6 BP folders containing the 17 files you’ve just revised to your server wp-content/themes/instyle/

D. Copy the style modifications made in BP Twenty Ten to bottom of your theme’s stylesheet http://codex.buddypress.org/legacy/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ Adjust to taste.

Advertisements

2 thoughts on “InStyle Theme v2.7, Elegant Themes”

  1. Hi there, this theme has been upgraded to 3.2, if you want i can paste-bin the new code for you so you can give it a try. Let me know the files you need. Keep up the good work!

  2. Hi there JomJom. Sure, feel free to post the header.php, index.php, page.php, sidebar.php and footer.php in respective pastebin uri’s here.

    Btw, come BP v 1.7, you won’t need BP Template Pack anymore. Good news đŸ™‚

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s