1. buddypress default code :- <?php get_header( 'buddypress' ); ?>
  2.  
  3. <div id="content">
  4. <div class="padder">
  5.  
  6. [ CONTENT ]
  7.  
  8. </div><!-- .padder -->
  9. </div><!-- #content -->
  10.  
  11. <?php get_sidebar( 'buddypress' ); ?>
  12. <?php get_footer( 'buddypress' ); ?>
  13.  
  14. My theme page.php code :-
  15. <?php get_header(); ?>
  16. <!--Main begin-->
  17. <div id="main" class="round_8 clearfix">
  18.  
  19. <!-- Breadcrumb begin -->
  20. <div class="pad-left-10">
  21. <?php if (function_exists('pkb_breadcrumbs')) pkb_breadcrumbs(); ?>
  22.  
  23. </div>
  24. <!-- Breadcrumb end -->
  25.  
  26. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  27.  
  28. <!-- Page title begin -->
  29. <div class="page_title round_6">
  30. <h1 class="replace">
  31. <?php if ( is_front_page() ) { ?>
  32. <?php the_title(); ?>
  33. <?php } else { ?>
  34. <?php the_title(); ?>
  35. <?php } ?>
  36. </h1>
  37. </div>
  38. <!-- Page title end -->
  39.  
  40. <!-- Content begin-->
  41. <div id="content" class="left">
  42. <?php if ( (has_post_thumbnail() && function_exists('has_post_thumbnail'))) { ?>
  43. <div class="landing_image"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'landing-image', array('class' => 'shadow') ); ?> </a></div>
  44. <?php } ?>
  45.  
  46. <?php the_content(); ?>
  47. <?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'peekaboo' ), 'after' => '' ) ); ?>
  48. <div class="clear">&nbsp;</div>
  49.  
  50. <?php endwhile; ?>
  51. </div>
  52. <!-- Content end-->
  53.  
  54. <!-- Sidebar begin-->
  55. <div id="sidebar" class="left">
  56. <?php get_sidebar(); ?>
  57. </div>
  58. <!-- Sidebar end-->
  59. <?php get_footer(); ?>
  60.  
  61. And my theme's index file is :-
  62. <?php
  63.  
  64. /**
  65.  
  66. * The main template file.
  67.  
  68. */
  69.  
  70. get_header(); ?>
  71.  
  72.  
  73.  
  74.  
  75.  
  76. <!--Main begin-->
  77.  
  78. <div id="main" class="round_8 clearfix">
  79.  
  80.  
  81.  
  82. <!-- Content begin-->
  83.  
  84. <div id="content" class="left">
  85.  
  86. <?php get_template_part( 'loop', 'index' ); ?>
  87.  
  88. </div>
  89.  
  90. <!-- Content end-->
  91.  
  92.  
  93.  
  94. <!-- Sidebar begin-->
  95.  
  96. <div id="sidebar" class="left">
  97.  
  98. <?php get_sidebar(); ?>
  99.  
  100. </div>
  101.  
  102. <!-- Sidebar end-->
  103.  
  104.  
  105.  
  106. <?php get_footer(); ?>