621 pointsLike some sort of WPMU DEV God"I'm new here
tishimself
Member
—
6th October 2011
Hi,
I've tried going back to the Parent Scholar Theme but the widgets on fhe Members and Blogs page still don't display. I've tried a number of widgets like text and the AD lite widget, but they don't display.
I've tried going back to the Parent Scholar Theme but the widgets on fhe Members and Blogs page still don't display. I've tried a number of widgets like text and the AD lite widget, but they don't display.
In the latest Scholar theme there is a change which requires a consideration in how you do this.
What has happened is there is this call for sidebars:
<?php get_sidebar( 'buddypress' ); ?>
So... what you can do now is choose which sidebars to use on those pages.
If you want to have a sidebar in a particular section you need to find the page for instance on members find members/single/home.php - copy this to the child theme keeping the structure. Then where you see this:
<?php get_sidebar( 'buddypress' ); ?>
You can change to call the members sidebars ie;
<?php get_sidebar( 'members' ); ?>
Or... you can create a BuddyPress only sidebar calling all those widgets in sidebar-buddypress.php.
As I said you link in from members/ or you use the default sidebar. Follow my steps above gets it working. I didn't say blogs/. If you can follow the steps and see if you get there otherwise respond back then we can at least see where you are at.
I could find no /members/home.php (I even downloaded the theme to my PC to see if I had something messed up on my site), but I did change the one in /members/single/home.php thinking that may be you meant. Now I'm just confused.
When that did not change anything, I tried /members/index.php just for grins.
Correct, you did not say/blogs/ but I did say..." the widgets on fhe Members and Blogs page still don't display." So I just gave it a try using index.php which also has that line of code, but it did not work either.
Note that I'm adding the widget to the "Blogs directory Sidebar" and the <Members Directory Sidebar" on the dashboard >appearences/Widgets. When I use the "Default Sidebar" widget it will display on both pages, but I want the *different* sidebar content on the members & blogs pages like b4. There is also a "Members Sidebar" which does not seem to appear anwhere.
Index.php uses a different sidebar so it wouldn't work.
If you look in your theme files you see a range of sidebars or files with sidebar- right? Each one is a different sidebar you can link to a different part of the theme. This enables you to have ones for members / blogs / groups.. whatever you wish.
So.. taking that idea you said you wanted to show a members sidebar.
So.. go into members/single/home.php and there you see the line I linked, just change to be the sidebar you want. I'd also recommend you simply copy that file and structure into the child theme as always suggested. Then you can use the members widget area.
Responses (12)
Theme Designer — 6th October 2011 #
Have you tried this unmodified just to check there are no modifications in your theme?
Member — 6th October 2011 #
Hi,
I tried it w/o the child theme updates by using the Parent, but I'm still looking for a cause.
Larry
Member — 6th October 2011 #
Hi
Maybe this is related to the problem.
Widgets are not working BuddyPress 1.5
Larry
Theme Designer — 7th October 2011 #
In the latest Scholar theme there is a change which requires a consideration in how you do this.
What has happened is there is this call for sidebars:
<?php get_sidebar( 'buddypress' ); ?>So... what you can do now is choose which sidebars to use on those pages.
If you want to have a sidebar in a particular section you need to find the page for instance on members find members/single/home.php - copy this to the child theme keeping the structure. Then where you see this:
<?php get_sidebar( 'buddypress' ); ?>You can change to call the members sidebars ie;
<?php get_sidebar( 'members' ); ?>Or... you can create a BuddyPress only sidebar calling all those widgets in sidebar-buddypress.php.
Member — 7th October 2011 #
Hi,
I made this change in the child theme home.php and then in the index.php but there was no change.
I also tried a change to 'blogs' in the blogs/index.php, but this did not help. There is no /single/ folder or home.php in /blogs/.
In the dashboard, I deleted the widgets and added them back to see if that might help, but no help there either.
FYI, the sidebar has the "widget-error" message "Please log in and add widgets to this column."
This message has not changed either.
Kind regards,
Larry
Theme Designer — 7th October 2011 #
As I said you link in from members/ or you use the default sidebar. Follow my steps above gets it working. I didn't say blogs/. If you can follow the steps and see if you get there otherwise respond back then we can at least see where you are at.
Member — 7th October 2011 #
Hi,
I could find no /members/home.php (I even downloaded the theme to my PC to see if I had something messed up on my site), but I did change the one in /members/single/home.php thinking that may be you meant. Now I'm just confused.
When that did not change anything, I tried /members/index.php just for grins.
Correct, you did not say/blogs/ but I did say..." the widgets on fhe Members and Blogs page still don't display." So I just gave it a try using index.php which also has that line of code, but it did not work either.
Note that I'm adding the widget to the "Blogs directory Sidebar" and the <Members Directory Sidebar" on the dashboard >appearences/Widgets. When I use the "Default Sidebar" widget it will display on both pages, but I want the *different* sidebar content on the members & blogs pages like b4. There is also a "Members Sidebar" which does not seem to appear anwhere.
Larry
Theme Designer — 7th October 2011 #
Index.php uses a different sidebar so it wouldn't work.
If you look in your theme files you see a range of sidebars or files with sidebar- right? Each one is a different sidebar you can link to a different part of the theme. This enables you to have ones for members / blogs / groups.. whatever you wish.
So.. taking that idea you said you wanted to show a members sidebar.
So.. go into members/single/home.php and there you see the line I linked, just change to be the sidebar you want. I'd also recommend you simply copy that file and structure into the child theme as always suggested. Then you can use the members widget area.
Member — 7th October 2011 #
Hi,
I backed out those changes.
It seems I can use the "Default Sidebar" for the blogs page widgets and the "Members Sidebar" for the members page widgets.
Larry
Theme Designer — 7th October 2011 #
So you're all set and working now? Just to confirm.
Member — 7th October 2011 #
Hi,
Yes, I have a way add the widgets onto the two pages.
Larry
Theme Designer — 8th October 2011 #
Cool thank you.
Become a member