@elmindo Working with the framework will be more complicated than usual, but we’ll give it a try.
Post the source codes of the following separately in pastebin.com
– loop-page.php
– functions/theme-layout-functions.php
– sidebar-page.php
– header.php
– index.php
– footer.php
@mercime thanks!
Here’s the source codes of the following separately in pastebin.com
– loop-page.php: http://pastebin.com/rC4W3k0Z
– functions.php: http://pastebin.com/wSt1cg15
– sidebar-page.php: http://pastebin.com/HrzsVHbF
– header.php: http://pastebin.com/MgsbGE4f
– index.php: http://pastebin.com/9Fu2EhFM
– footer.php: http://pastebin.com/U0u8WJu8
Got this from the UnitedThemes Suport guys, if it will help:
Quote: UnitedThemes
… it seems like that you need to move the mentioned files above into the theme directory. And when moving you need to apply the settings for the basic setup.
Therefore we made use of functions instead of hardcoded HTML inside our files. So when having a look at the page.php we are using a functions to open the content part and another to close:
Code:
lambda_before_content($columns=”);
will create a div:
Code:
<div id="content-wrap" class="fluid clearfix" data-content="content"><!– /#start content-wrap –>
<div class="container"><div id="content" class="’.$columns.’ columns">
and
Code:
lambda_after_content();
will close it. So use this skeleton here to create the single template files:
Code:
<?php
//includes the header.php
get_header();
//includes the template-part-slider.php
get_template_part( ‘template-part’, ‘slider’ );
//includes the template-part-teaser.php
get_template_part( ‘template-part’, ‘teaser’ );
//set column layout depending if user wants to display a sidebar
lambda_before_content($columns=”);
//the content loop
get_template_part( ‘loop’, ‘page’ );
//content closer – this function can be found in functions/theme-layout-functions.php line 56-61
lambda_after_content();
//include the sidebar-page.php
if(empty($columns))
get_sidebar();
//includes the footer.php
get_footer();
?>
But I’m still a bit lost.
@elmindo we’re going to have to hard code some of the template structures. Assuming that you’ve already set up your theme, let me know what your choices are in terns of
1. theme version you used: Full Width OR Boxed? Which one?
2. sidebar for ALL BP templates: No sidebar (full width) OR Left Sidebar OR Right Sidebar OR Both Sidebars? Which one?
1. I’m using version 1.3, Full Width.
2. alternating between no sidebar and right sidebar on my page, bu would do with right sidebar for BP.
@elmindo Based on the HTML structure of your theme, you need to change 16 template files within the 6 BP folders transferred to your nevada theme folder in server during the compatibility process.
If you’ve previously changed any of the BP template files in your nevada theme folder in server, replace all of them for a clean slate by deleting the 6 BP folders – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility.
Download the 6 clean BP folders to your computer hard drive.
A. At the top of each of those 16 template files I linked to above, replace
`
`
with the following:
`<?php
global $lambda_meta_data;
$meta_sidebar = $lambda_meta_data->get_the_value(‘sidebar’);
$meta_sidebar = (!empty( $meta_sidebar )) ? $meta_sidebar : get_option_tree( ‘select_sidebar’ );
get_header();
get_template_part( ‘template-part’, ‘slider’ );
get_template_part( ‘template-part’, ‘teaser’ );
if($meta_sidebar != UT_THEME_INITIAL.’sidebar_none’) {
lambda_before_content($columns=”);
} elseif($meta_sidebar == UT_THEME_INITIAL.’sidebar_none’) {
lambda_before_content($columns=’sixteen’);
}
?>
<section id="post-” >
`
Then, in each of 16 files, you’d like to change the BP Templates’ page title’s header tag from `
…
` or `
..
` to `
// Respective Page Titles //
` where applicable, then move this to above `
` Just watch out when you do this in the /activity/index.php page.
Save files.
B. At the bottom of the same 16 files, replace:
`
`
with the following (except for registration/register.php):
`
<?php
lambda_after_content();
if(empty($columns))
get_sidebar();
get_footer();
?>`
with the following for registration/register.php:
`
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();
});
});
<?php
lambda_after_content();
if(empty($columns))
get_sidebar();
get_footer();
?>`
Save files.
C. Upload the 6 BP folders containing the 16 files you’ve just revised to your server wp-content/themes/nevada/
D. Copy the style modifications made in BP Twenty Ten at https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste to your theme’s stylesheet. Adjust to taste.
Thank you so much @mercime ! All though I’m an atheist, I’m tempted to call you a God