Jump to content
Sign in to follow this  
ashriver

Default Sidebar

Recommended Posts

ashriver

Anyone know where to change the default sidebar widgets? I have a few pages that have been added dynamically (ie - Buddypress) and I don't want all the sidebars. These are not pages I've created but rather pages of the Buddypress system. They are grabbing all the sidebars I have created. Any help would be greatly appreciated!! Thank you!

Share this post


Link to post
Share on other sites
ashriver

Also I've tried adding this http://wordpress.org/extend/plugins/buddypress-sidebar/ but it doesn't play nice with the pagelines theme itself. It's a great solution for someone just wanting to customize Buddypress itself. Unless someone knows a way to make them both work together, that would be the best solution EVER!!! ;)

Share this post


Link to post
Share on other sites
bryan-hadaway

So, you do not want sidebars displayed or certain sidebars displayed on BuddyPress pages is that correct? Get me a link to the BuddyPress pages and details on what you want shown and not and I can probably write up some CSS for you. Thanks, Bryan

Share this post


Link to post
Share on other sites
mondolife

I think this issue is similar enough to Amber's BuddyPress item to be in this thread - (and yes, solving the conflict with BP Sidebar would be great) We want to specify the widget that shows up on dynamic pages. We can specify the widget on top level page type, example: /members We Can Not specify the widget that shows up on a members page, example: /members/bob It's not about 'bob' but any page from members that calls a specific member. We've looked for the platformpro code that writes in the widget on those pages - no luck yet. At the bottom of this file: wp-content/themes/platformbase/members/single/home.php There is a template call to 'sidebar.php' Changing this file: wp-content/plugins/buddypress/bp-themes/bp-default/sidebar.php has no effect. Is there a sidebar.php file in platform? If so where? Have not been able to find any action calls in platform code to 'bp_sidebar_me' which has a do_action in /wp-content/plugins/buddypress/bp-themes/bp-default/sidebar.php Perhaps Platform takes over well before that? Thanks.

Share this post


Link to post
Share on other sites
cmunns

So it works about half the way? I couldn't get it to work at all..what steps can I take to duplicate your setups?

Share this post


Link to post
Share on other sites
mondolife

In order to get it working on single page, example: /members I set up a page in worpress and specify which sidebar should show up (ie: Secondary Sidebar) Probably more to the point... In the actual code: I copied sidebar.php from platformpro to wp-content/themes/platformbase/ and in that file is this snippet:

			if($pagelines_layout->layout_mode != 'two-sidebar-center'):?>
				<div id="sidebar1" class="scolumn fix" >
					<div class="scolumn-pad">
				<?php do_action('pagelines_sidebar1', 'sidebar1'); // hook ?>
					</div>
				</div>
			<?php endif;

So now we are looking for the function 'sidebar1' referred to in the do_action above. Hopefully that function can be tweaked to allow better control of which widgets are shown.

Share this post


Link to post
Share on other sites
mondolife

Ok... sidebar1 is a $template_map sub-array defined in config.templates.php So it would seem that changing, in sidebar.php, from do_action('pagelines_sidebar1', 'sidebar1'); to do_action('pagelines_sidebar2', 'sidebar2'); would pull in the sidebar2 which is listed as a sub-array defined in config.templates.php... but it does not work properly. Hmmm... let me state the issue more simply in another post...

Share this post


Link to post
Share on other sites
mondolife

Hopefully this is more answerable - In wp-admin > Edit Page - PageLines Section Control there are checkboxes for hide/show options. So if you were editing page 'members', you could set the Section Control for Sidebar1 to 'Hide Primary' and 'Show Secondary'. The Questions: 1. Where are those options stored? 2. When pages are built for viewing, where are those sidebar options read - meaning which file(s) reads the options and builds that area?

Share this post


Link to post
Share on other sites
bryan-hadaway

Hi Christopher, For future reference even if you have the exact same issue as someone else please start your own topic just so that we can work with customers in a one on one fashion for their specific issue. 1. The Database. 2. I think for the most part it's still the normal header.php, sidebar.php and footer.php simply wrapping the BuddyPress theme/template probably with conditional tags. Thanks, Bryan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×