Hi,
Does anyone have a solution for this problem?
I’m completely at a loss.
Thanks
@heyshamsw we can only try our best to resolve such issues.
So what method did you try to use to make your theme compatible with BuddyPress, the first method which changes 16 template files or the second method with the xxx-buddypress.php files? https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
To help you evaluate which method is good for your WP theme, open up your theme’s header.php, copy code, paste code in pastebin.com, click submit, and post the generated pastebin.com uri here. Do the same thing for index.php, page.php, sidebar.php and footer.php.
Site URI with said thematic child theme would be helpful as well.
@mercime,
Thank you for the help – it is most appreciated.
I tried both methods of making the theme compatible with BuddyPress. Neither worked.
Here are the pastebin.com URIs:
header.php
http://pastebin.com/hEeQyBz4
index.php
http://pastebin.com/KxvBqhQm
page.php
http://pastebin.com/uDa4eLp4
sidebar.php
http://pastebin.com/0QS9ffew
footer.php
http://pastebin.com/hSq7wVkF
Also, a correction to my initial set-up information – the site is on a sub-domain: http://demo.e-learning-rules.com
As I mentioned in my initial post, when I look at the HTML displayed in the browser, the sidebar code is completely missing, as if the sidebar function is just not being called.
Thanks again for your help.
I’ve not managed to fix this but I have discovered a work-around.
I’ve installed the Widgets on Pages plugin, add the necessary widgets to the widget area I’ve named “bpSidebar”, then in the child theme’s functions.php file added:
http://pastebin.com/vjUps2Zv
This uses one of the theme’s hooks to place the widget area on the page.
As I say, this is a work-around rather than a fix.
heyshamsw You will need to change 16 template files within the 6 BP folders transferred to your thematic child theme folder in server during the compatibility process.
If you’ve previously changed any of the BP template files in your theme folder, replace all of them for a clean slate by deleting the 6 BP folders in server – /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
`<?php
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<?php
// calling the widget area ‘page-top’
get_sidebar(‘page-top’);
the_post();
thematic_abovepost();
?>
B. At the bottom of the same 16 files, replace:
`
`
with the following (except for registration/register.php):
`
<?php
thematic_belowpost();
// calling the widget area ‘page-bottom’
get_sidebar(‘page-bottom’);
?>
<?php
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
?>`
with the following for registration/register.php:
`
<?php
thematic_belowpost();
// calling the widget area ‘page-bottom’
get_sidebar(‘page-bottom’);
?>
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
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
?>`
C. Save files. Upload 6 BP folders to your server wp-content/themes/YourThematicChildThemeFolder/
D. You might also want to check out the style modifications made in BP Twenty Ten for reference. https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/
Hi mercime,
A big thank you for your efforts, but I’m afraid these changes had no effect.
The `get_sidebar()` function calls are still not being called.
Could just be that the widget plugin is interfering with the function calls. Not sure about that. The scope of forums assistance covers getting HTML structure of theme onto the BP Template files. I used the info you have posted in pastebin. If there’s still some misalignment, let me know by posting url’s of BP pages in your site.
The relevant pages are now private and password protected so I can’t let you have access to them.
However, I can tell you that there is no misalignment and all the BP content is fine – it’s just the sidebar that will not display.
Also, I tried installing just WordPress and BuddyPress fresh on a subdomain – with nothing else installed – and I still had the same result, i.e. no sidebar on the BuddyPress pages.
There seems to be somthing in WordPress, Thematic or BuddyPress that does not want to play nice.
For the time being I shall have to continue with the work-around I outlined above – not ideal but workable.
Thanks again.